--->ResetPlayerWeapons<---
#2

try this:
pawn Код:
#include <a_samp>
#define None 0
#define RED 0x667788
public OnPlayerUpdate(playerid)
{
    if(GetPlayerWeapon(playerid) == 38 || GetPlayerWeapon(playerid) == 9 || GetPlayerWeapon(playerid) == 26 || GetPlayerWeapon(playerid) == 35 || GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 18 || GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 44 || GetPlayerWeapon(playerid) == 45)
    {
    new Name[MAX_PLAYER_NAME];
    new str[128];
    GetPlayerName(playerid,Name,sizeof(Name));
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    GivePlayerWeapon(playerid, 38, None);
    GivePlayerWeapon(playerid, 9, None);
    GivePlayerWeapon(playerid, 26, None);
    GivePlayerWeapon(playerid, 35, None);
    GivePlayerWeapon(playerid, 36, None);
    GivePlayerWeapon(playerid, 37, None);
    GivePlayerWeapon(playerid, 16, None);
    GivePlayerWeapon(playerid, 18, None);
    GivePlayerWeapon(playerid, 39, None);
    GivePlayerWeapon(playerid, 44, None);
    GivePlayerWeapon(playerid, 45, None);
    }
    return 1;
}
Reply


Messages In This Thread
[No subject] - by Serifukas - 12.08.2011, 13:15
Re: --->ResetPlayerWeapons<--- - by Kaperstone - 12.08.2011, 14:01
Re: --->ResetPlayerWeapons<--- - by Serifukas - 12.08.2011, 14:15
Re: --->ResetPlayerWeapons<--- - by MadeMan - 12.08.2011, 14:24
Re: --->ResetPlayerWeapons<--- - by Serifukas - 12.08.2011, 15:15
Re: --->ResetPlayerWeapons<--- - by Kaperstone - 12.08.2011, 17:01

Forum Jump:


Users browsing this thread: 2 Guest(s)