--->ResetPlayerWeapons<---
#1

Hello Everybody.

I Make Anti Guns System Like This And Now I Need When Player Get Wrong Weapon Like Minigun Or Else
before player kicked from his remove weapons how to do this maybe someone can help ?

This Is My Anti Guns Code :

Код:
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
new str[128];
new weaponid = GetPlayerWeapon(playerid);

    if(weaponid == 38 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 9 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 26 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    SetPlayerAmmo(playerid,26,0);
	Kick(playerid);
}
    if(weaponid == 35 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 36 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 37 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 16 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 18 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 39 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
	if(weaponid == 44 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
}
    if(weaponid == 45 )
    {
    format(str,sizeof(str),"%s: Kicked For Gun Hack!",Name);
    SendClientMessageToAll(RED,str);
    ResetPlayerWeapons(playerid);
	Kick(playerid);
    }
    return 1;
}
I added reset code in this script but its don't work ResetPlayerWeapons(playerid);
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: 1 Guest(s)