GetPlayerWeapon isn't working.
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/SpawnM4", cmdtext, true, 10) == 0)
    {
        GivePlayerWeapon(playerid, 31, 10000);
    }
    return 1;
}
Edit: Get Zcmd much better
pawn Код:
CMD:spawnm4(playerid, params[]) //Add in bottom of the script, 'REMEMBER' Get Zcmd first, search in ******
{
    GivePlayerWeapon(playerid, 31, 10000);
    return 1;
}
And you don't need Bigger and lower case when making cmds , just make it /spawnm4 ...
Reply


Messages In This Thread
GetPlayerWeapon isn't working. - by mkmk - 11.10.2014, 10:46
Re: GetPlayerWeapon isn't working. - by Rudy_ - 11.10.2014, 10:51
Re: GetPlayerWeapon isn't working. - by mkmk - 11.10.2014, 10:55
Re: GetPlayerWeapon isn't working. - by Rudy_ - 11.10.2014, 10:57
Re: GetPlayerWeapon isn't working. - by oskarunt - 11.10.2014, 10:58
Re: GetPlayerWeapon isn't working. - by mkmk - 11.10.2014, 11:00
Re: GetPlayerWeapon isn't working. - by oskarunt - 11.10.2014, 11:04
Re: GetPlayerWeapon isn't working. - by Rudy_ - 11.10.2014, 11:05
Re: GetPlayerWeapon isn't working. - by mkmk - 11.10.2014, 11:07
Re: GetPlayerWeapon isn't working. - by DaniceMcHarley - 11.10.2014, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)