I am new to scripting and need help
#2

Try:

pawn Код:
{
    if (strcmp(cmdtext,"/armour", true, 10) == 0)
    {
        SetPlayerArmour(playerid, 100);
        SendClientMessage(playerid, COLOR_BRIGHTRED, "Armour set to 100");
        return 1;
    }
    if (strcmp(cmdtext,"/spawn", true, 10) == 0)
    {
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SendClientMessage(playerid, COLOR_YELLOW, "Teleported to spawn");
        return 1;
    }
}
Reply


Messages In This Thread
I am new to scripting and need help - by Dr. Dre - 12.11.2011, 06:03
Re: I am new to scripting and need help - by GangsTa_ - 12.11.2011, 06:04
Re: I am new to scripting and need help - by Mr_Scripter - 12.11.2011, 06:06
Re: I am new to scripting and need help - by InterRP Team - 12.11.2011, 06:48
Re: I am new to scripting and need help - by Michael[NBK] - 12.11.2011, 10:44
Re: I am new to scripting and need help - by Kostas' - 12.11.2011, 10:48
Re: I am new to scripting and need help - by Dr. Dre - 12.11.2011, 11:10
Re: I am new to scripting and need help - by Kostas' - 12.11.2011, 11:34
Re: I am new to scripting and need help - by Dr. Dre - 13.11.2011, 02:41
Re: I am new to scripting and need help - by Mr_Scripter - 13.11.2011, 03:34

Forum Jump:


Users browsing this thread: 1 Guest(s)