27.05.2011, 22:13
Stil don't work.. i always put that..
That's have look in my gm.. :S
Код:
CMD:cc(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 1) { new cMsg[128], pName[MAX_PLAYER_NAME]; for(new c; c < 25; c++) { SendClientMessage(playerid, COLOR_RED, " "); } format(cMsg, sizeof(cMsg), "[Chat]: Admin %s je ocistio chat.", pName); SendClientMessage(playerid, COLOR_LIGHTBLUE, cMsg); SendClientMessage(playerid, COLOR_LIGHTBLUE, "www.sx-rp.info"); return 1; } else SendClientMessage(playerid, COLOR_RED, "[ERROR]: Nisi Admin!"); return 1; } //============================================================================== public OnPlayerCommandReceived(playerid, cmdtext[]) { return 1; } public OnPlayerCommandPerformed(playerid, cmdtext[], success) { new string[256]; new playermoney; new sendername[MAX_PLAYER_NAME]; new giveplayer[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; new cmd[256]; new tmp[256]; new giveplayerid, moneys, idx; cmd = strtok(cmdtext, idx);