Scripted Teargas
#3

You can use
Код:
GetPlayerWeapon(playerid)
Use it like
pawn Код:
if(GetPlayerWeapon(playerid) == [Insert Teargas Weapon ID Here])
{
Your code...
}
Sorry, was too lazy to look for the weapon ID myself :P It's on the wiki.

You could also just change
pawn Код:
if(!IsPlayerInAnyVehicle(playerid))
{
with

pawn Код:
if(!IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) == [Insert Teargas Weapon ID Here])
{
Don't know that last thing for sure though, didn't really look into your script =)
Reply


Messages In This Thread
Scripted Teargas - by Tannz0rz - 03.02.2009, 12:02
Re: Scripted Teargas - by yezizhu - 03.02.2009, 13:33
Re: Scripted Teargas - by Ycto - 03.02.2009, 14:36
Re: Scripted Teargas - by Tannz0rz - 03.02.2009, 20:57
Re: Scripted Teargas - by Tannz0rz - 04.02.2009, 16:54
Re: Scripted Teargas - by Karlip - 04.02.2009, 17:05
Re: Scripted Teargas - by Tannz0rz - 04.02.2009, 17:33

Forum Jump:


Users browsing this thread: 1 Guest(s)