if(strcmp(cmd, \"/kor\", true) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /kor [JátékosID/NévRészlet] [kor]\"); return 1; } new playa; new age; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); age = strval(tmp); if (Admin(playerid, 3)) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { if(playa != INVALID_PLAYER_ID) { PlayerInfo[playa][pAge] = age; GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, 256, \"<< FõAdmin %s beállította %s életkorát erre: %d >>\", sendername,giveplayer,age); SendFAdminMessage(COLOR_FOADMIN,string); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s beállította %s életkorát erre: %d\",y,m,d,h,mi,s,nev,giveplayer,age); LoOoG(stringx); } } } else { SendClientMessage(playerid, COLOR_GRAD1, \"Nem vagy fõadmin!\"); } } return 1;}
if(strcmp(cmd, \"/kor\", true) == 0){ if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /kor [JátékosID/NévRészlet] [kor]\"); return 1; } new playa; new age; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); age = strval(tmp); if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { if(playa != INVALID_PLAYER_ID) { PlayerInfo[playa][pAge] = age; GetPlayerName(playa, giveplayer, sizeof(giveplayer)); new nev[32]; GetPlayerName(playerid, nev, sizeof(nev)); new h,mi,s,y,m,d; getdate(y,m,d); gettime(h,mi,s); format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s beállította %s életkorát erre: %d\",y,m,d,h,mi,s,nev,giveplayer,age); LoOoG(stringx); } } } } return 1;}