Command problem
#5

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;
	}
Reply


Messages In This Thread
Command problem - by xalyy - 26.11.2011, 13:49
Re: Command problem - by sabretur - 26.11.2011, 13:50
Re: Command problem - by Mr_Scripter - 26.11.2011, 13:50
Re: Command problem - by Kostas' - 26.11.2011, 13:51
Re: Command problem - by xalyy - 26.11.2011, 13:53
Re: Command problem - by xalyy - 26.11.2011, 16:05
Re: Command problem - by Joshb93 - 26.11.2011, 16:08
Re: Command problem - by xalyy - 26.11.2011, 16:14
Re: Command problem - by Joshb93 - 26.11.2011, 16:15
Re: Command problem - by xalyy - 26.11.2011, 16:17

Forum Jump:


Users browsing this thread: 1 Guest(s)