26.11.2011, 13:53
This is my OnPlayerCommandText:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new x_job[256]; new string[256]; new playermoney; if(AdminDuty[playerid] == 1) SetPlayerChatBubble(playerid, "Admin szolgбlatban", COLOR_LIGHTBLUE,20,1200); 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; new idcar = GetPlayerVehicleID(playerid); new rapstyle, wankstyle, stripstyle, dancestyle, sexstyle, bjstyle; cmd = strtok(cmdtext, idx); GetPlayerName(playerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s: ID:%d CMD: %s", giveplayer, playerid, cmdtext); CMDLog(string); if(RegistrationStep[playerid] > 0) { SmallLifeMessage(playerid, COLOR_LIGHTRED, " Nem tudod ezt csinбlni jelenleg !"); return 1; } if(BenchPresses[playerid] != 0) { SmallLifeMessage(playerid, COLOR_LIGHTRED, "Nem tudod hasznбlni ezt amikor padon vagy."); return 1; }