command problem
#2

use this :
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/cmds", true) == 0)
    {
    SendClientMessage(playerid, 0xDEEE20FF, "/carmenu to spawn cars");
    SendClientMessage(playerid, 0xDEEE20FF, "this is a place holder for another command :P");
    return 1;
    }
	if(strcmp(cmdtext, "/adminhouse", true) == 0)
    {
	SetPlayerPos(playerid,2559.5488,-1769.4063,480.7705);
	return 1;
    }
    return 0;
}
Reply


Messages In This Thread
command problem - by johnathon956 - 07.04.2010, 19:19
Re: command problem - by aircombat - 07.04.2010, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)