Checking if player is in ....
#2

PHP код:
cmd(tazerplayeridparams[])
{
    new 
string[28+MAX_PLAYER_NAME];
    if(
Tazer[playerid] == 0)
    {
        if(
PlayerInfo[playerid][pFaction] == 1) return SendClientMessage(playerid, -1"You cannot use this command.");

        
GivePlayerWeapon(playerid239999);
        
format(stringsizeof(string),"%s has unholstered his tazer."RemoveUnderScore(playerid));
        
ProxDetector(30.0playeridstringPURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
        
Tazer[playerid] = 1;
    }
    else
    {
        
SetPlayerAmmo(playerid230);
        
format(stringsizeof(string),"%s has holstered his tazer."RemoveUnderScore(playerid));
        
Tazer[playerid] = 0;
        
ProxDetector(30.0playeridstringPURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
    }
    return 
1;

Reply


Messages In This Thread
Checking if player is in .... - by Lukasz56 - 29.01.2015, 09:22
Re: Checking if player is in .... - by nezo2001 - 29.01.2015, 09:34
Re: Checking if player is in .... - by Lukasz56 - 29.01.2015, 09:39
Re: Checking if player is in .... - by nezo2001 - 29.01.2015, 10:15
Re: Checking if player is in .... - by ATGOggy - 29.01.2015, 10:45
Re: Checking if player is in .... - by JaydenJason - 29.01.2015, 11:17
Re: Checking if player is in .... - by Lukasz56 - 29.01.2015, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)