Command Scripting Help
#3

Use this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/jetpack", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        CreatePickup(370,2,X,Y,Z);
        SendClientMessage(playerid, COLOR_GREY, "* Spawned jetpack");

        return 1;
    }
        return 1;
}
    return 1;
}
Reply


Messages In This Thread
Command Scripting Help - by EDHH - 24.07.2011, 18:58
Re: Command Scripting Help - by Facepunch - 24.07.2011, 19:17
Re: Command Scripting Help - by Facepunch - 24.07.2011, 19:25
Re: Command Scripting Help - by VitalRP - 24.07.2011, 19:29
Re: Command Scripting Help - by MadeMan - 24.07.2011, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)