playe name command
#5

you forgot something

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/troyhouse", true) == 0)
    {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, sizeof(pName));
        if(strfind(pName, "Troy", true) != -1)
        {
            SetPlayerPos(playerid, 2018.2966, 1916.3411, 12.3418);
        }
        else return SendClientMessage(playerid, 0xFFFFFF, "Your name must be \"Troy\" to teleport!");

		return 1;
	}
	return 0;
}
Reply


Messages In This Thread
playe name command - by BlackRock - 19.07.2010, 22:42
Re: playe name command - by klavins21 - 19.07.2010, 23:18
Re: playe name command - by BlackRock - 20.07.2010, 00:07
Re: playe name command - by PotH3Ad - 20.07.2010, 00:12
Re: playe name command - by BlackRock - 20.07.2010, 00:48

Forum Jump:


Users browsing this thread: 1 Guest(s)