Nem hanem arra, hogy bemegybaz egyik dynamicCP-be azt törli és az xyz-t pedig megcsinálja
new Jatekos[MAX_PLAYERS];CMD:jatekos(playerid){Jatekos[playerid] = 1;SetPlayerCheckpoint(playerid, X, Y, Z, 5/*méret*/Méret);return 1;}public OnPlayerEnterCheckpoint(playerid){if(Jatekos[playerid] == 1){ SetPlayerCheckpoint(playerid, X, Y, Z, /*méret*/); Jatekos[playerid] = 2;}elseif(Jatekos[playerid] == 2){ SendClientMessage(playerid, -1, \"Nincs több CP\"); Jatekos[playerid] = 0;}return 1;}
#include <a_samp>#include <Dini>#define REGISZTRACIO 0#define BELEPES 1#define Szurke 0x9F9F9FFFenum Adat{ Neve, Jelszo, Szint, Penz, Pozicio}new Info[MAX_PLAYERS][Adat];main(){ print(\"\\n----------------------------------\"); print(\" Blank Gamemode by your name here\"); print(\"----------------------------------\\n\");}public OnGameModeInit(){ // Don\'t use these lines if it\'s a filterscript SetGameModeText(\"Blank Script\"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1;}public OnGameModeExit(){ return 1;}public OnPlayerConnect(playerid){ new jl[128]; format(jl, sizeof(jl),\"/Karakterek/%s.ini\", Nev(playerid)); new string[128]; if(GetPVarInt(playerid, \"Belepve\") == 1) { if(!dini_Exists(jl)) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); format(string, sizeof(string),\"Üdvözöllek a szerveren! Kérlek írj be egy kívánt jelszót a regisztrációhoz!\"); ShowPlayerDialog(playerid, REGISZTRACIO, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrálás\", \"Vissza\"); } else if(dini_Exists(jl)) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); format(string, sizeof(string),\"Üdvözöllek a szerveren! Kérlek írd be a jelszavad!\"); ShowPlayerDialog(playerid, BELEPES, DIALOG_STYLE_INPUT, \"Belépés\", string, \"Belépés\", \"Vissza\"); } } return 1;}public OnPlayerRequestClass(playerid,classid){ return 1;}public OnPlayerDisconnect(playerid, reason){ KarakterMentes(playerid); return 1;}public OnPlayerSpawn(playerid){ SetPlayerPos(playerid, 0,0,5); SetPlayerFacingAngle(playerid, 250); return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ new reg[128], string[128]; format(reg, sizeof(reg),\"/Karakterek/%s.ini\", Nev(playerid)); switch(dialogid) { case REGISZTRACIO: { if(response) { if(strlen(inputtext) == 0) { new str[128]; SendClientMessage(playerid, Szurke, \"Te még nem regisztráltál! Kérlek adj meg egy kívánt jelszót!\"); format(str, sizeof(str),\"Üdvözöllek a szerveren! Kérlek írj be egy kívánt jelszót a regisztrációhoz!\"); ShowPlayerDialog(playerid, REGISZTRACIO, DIALOG_STYLE_INPUT, \"Regisztráció\", string, \"Regisztrálás\", \"Vissza\"); } else{ dini_Create(reg); dini_Set(reg,\"Jelszo\", inputtext); SpawnPlayer(playerid); SetCameraBehindPlayer(playerid); } } else { SendClientMessage(playerid, Szurke, \"A visszalépés miatt ki lettél rúgva a szerverröl!\"); Kick(playerid); } } case BELEPES: { if(response){ if(strlen(inputtext) == 0) { SendClientMessage(playerid, Szurke,\"Te még nem jelentkeztél be! Kérlek írd be a jelszavad!\"); format(string, sizeof(string),\"Üdvözöllek a szerveren! Kérlek írd be a jelszvad!\"); ShowPlayerDialog(playerid, BELEPES, DIALOG_STYLE_INPUT, \"Belépés\", string, \"Belépés\", \"Vissza\"); } else { if(!strcmp(inputtext, dini_Get(reg,\"Jelszo\"), true)) { SetPVarInt(playerid,\"Belepve\",1); SpawnPlayer(playerid); SetCameraBehindPlayer(playerid); } } return 1; } } } return 0;}stock KarakterMentes(playerid){ new ment[128]; format(ment, sizeof(ment),\"/Karakterek/%s.ini\", Nev(playerid)); if(!dini_Exists(ment)) { dini_Create(ment); } else if(dini_Exists(ment)) { dini_IntSet(ment,\"Szint\", GetPlayerScore(playerid)); dini_IntSet(ment,\"Penz\", GetPlayerScore(playerid)); } return 1;}stock KarakterBetoltes(playerid){ new tolt[128]; format(tolt, sizeof(tolt),\"/Karakterek/%s.ini\", Neve(playerid)); if(dini_Exists(tolt)) { SetPlayerScore(playerid, dini_Int(tolt,\"Szint\")); SetPlayerMoney(playerid, dini_Int(tolt,\"Penz\")); } return 1;}stock SetPlayerMoney(playerid, cash){ ResetPlayerMoney(playerid); return GivePlayerMoney(playerid, cash);}stock Nev(playerid){ new neve[MAX_PLAYER_NAME]; GetPlayerName(playerid, neve, sizeof(neve)); return neve;}
(166) : warning 203: symbol is never used: \"Info\"
Nagyon nehéz. Egyébként nem használod new Info[MAX_PLAYERS][Adat]; nevû változót sehol sem.. Nem kell törölni mert gondolom fogod valamikor használni a betöltéseknél vagy mentéseknél.
//---------------------------<[ OnDialogResponse ]>---------------------------public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){if(dialogid == 9951){if(listitem == 0){PlayerInfo[playerid][pSex] = 1;SendClientMessage(playerid, 0xFFFFFFAA, \"Oké,fiú vagy.\");new maleskin;maleskin = random(sizeof(CivMalePeds));SetPlayerSkin(playerid, maleskin);PlayerInfo[playerid][Civilruha1] = maleskin;ShowPlayerDialog(playerid,1111,DIALOG_INPUT,\"Írd be a korodat!\",\"Írd be a korodat (18-80)\",\"Tovább\",\"Mégsem\");}if(listitem == 1){PlayerInfo[playerid][pSex] = 2;SendClientMessage(playerid, 0xFFFFFFAA, \"Oké,lány vagy.\");new femaleskin;femaleskin = random(sizeof(CivFemalePeds));SetPlayerSkin(playerid, femaleskin);PlayerInfo[playerid][Civilruha1] = femaleskin;ShowPlayerDialog(playerid,1111,DIALOG_INPUT,\"Írd be a korodat!\",\"Írd be a korodat (18-80)\",\"Tovább\",\"Mégsem\");}}}}return 1;}if(dialogid == 1111){if(strval(inputtext) < 18 ||strval(inputtext) > 80){ShowPlayerDialog(playerid,1111,DIALOG_INPUT,\"Írd be a korodat!\",\"Írd be a korodat (18-80)\",\"Tovább\",\"Mégsem\");return 0;}PlayerInfo[playerid][pAge] = strval(inputtext);format(string, sizeof(string), \"Rendben, te %d éves vagy.\",PlayerInfo[playerid][pAge]);SendClientMessage(playerid, COLOR_RED, string);ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, \"Hol Szertnél Lakni?\",\"ElQuebradosba\\nLaspaydasba\", \"Elkezd\", \"Mégse\");return 1;}if(dialogid == 2222){if(listitem == 0){PlayerInfo[playerid][pOrigin] = 1;SendClientMessage(playerid, COLOR_BLUE, \"Rendben, szóval El Quebradosban szeretnél lakni.\");SendClientMessage(playerid, COLOR_RED, \"Köszönjük hogy megadtad az adataidat.\");TutTime[playerid] = 1;RegistrationQuestion[playerid] = 1;//TutTime[playerid] = 1;//TutTime[playerid] = 118;}if(listitem == 1){PlayerInfo[playerid][pOrigin] = 2;SendClientMessage(playerid, COLOR_BLUE, \"Rendben, szóval Las Payasadasban szeretnél lakni.\");SendClientMessage(playerid, COLOR_RED, \"Köszönjük hogy megadtad az adataidat.\");TutTime[playerid] = 1;RegistrationQuestion[playerid] = 1;//TutTime[playerid] = 1;//TutTime[playerid] = 118;}}}}return 1;}if(dialogid == DIALOG_HARC){if(listitem == 0) return SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL), SendClientMessage(playerid, 0x38FF06FF, \"Új harcstílusod: Normál!\");if(listitem == 1) return SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING), SendClientMessage(playerid, 0x38FF06FF, \"Új harcstílusod: Box!\");if(listitem == 2) return SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU), SendClientMessage(playerid, 0x38FF06FF, \"Új harcstílusod: Kung Fu!\");if(listitem == 3) return SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW), SendClientMessage(playerid, 0x38FF06FF, \"Új harcstílusod: Elbow!\");if(listitem == 4) return SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD), SendClientMessage(playerid, 0x38FF06FF, \"Új harcstílusod: Kneehead!\");return 1;}return 0;}
16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.[16:46:45] sscanf warning: Unenclosed specifier parameters are deprecated, consider using something like p<,>.
#include <a_samp>#include <streamer>public OnGameModeInit(){ Create3DTextLabel(\"<<Rendõrség>>\",0x00A3C0AA, 2362.5845,235.6662,26.4082,273.7071);return 1;}
Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)