if(strcmp(cmd, \"/va\", true) == 0){ if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, \" Nem vagy bejelentkezve !\"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használat: /va [cselekvés]\"); return 1; } format(string, sizeof(string), \"* Valaki %s\", result); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); printf(\"%s\", string);}return 1;}
if(strcmp(cmd, \"/asay\", true) == 0){ if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] <= 1) { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy admin!\"); return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_WHITE, \"HASZNÁLAT: /asay [szöveg]\"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string),\"* Moderátor %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 1) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Moderátor %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 2) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Admin %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 3) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Admin %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 4) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* FõAdmin %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] == 5) SendClientMessageToAll(COLOR_LIGHTBLUE1, string); format(string, sizeof(string),\"* Fõadmin %s: %s\", sendername, result); if (PlayerInfo[playerid][pAdmin] >= 6) SendClientMessageToAll(COLOR_LIGHTBLUE1, string);}return 1;}
if(strcmp(cmd, \"/vá\", true) == 0 || strcmp(cmd, \"/válaszol\", true) == 0){ if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] < 1) { SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy admin!\"); return 1; } if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, \" Nem vagy bejelentkezve!\"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, \"Használd: (/vá)lasz [playerid/PartOfName] [szöveg]\"); return 1; } giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(HidePM[giveplayerid] > 0) { SendClientMessage(playerid, COLOR_GREY, \"Ez a játékos letiltotta az üzenetküldést!\"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); if(giveplayerid == playerid) { format(string, sizeof(string), \"* %s motyog valamit magában\", sendername); ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= \' \')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: (/vá)lasz [playerid/PartOfName] [szöveg]\"); return 1; } SendClientMessage(playerid, COLOR_GREEN, \"Elküldted a válaszodat!\"); format(string, sizeof(string), \"Admin %s : %s\", sendername, result); SendClientMessage(giveplayerid, 0xBBA033AA, string); return 1; } } else { format(string, sizeof(string), \" %d nevû játékos kivan jelentkezve.\", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); }}return 1;}