23.12.2009, 16:04
Hello guys,
I currently own a SA:MP server and one of my player told me an interesting suggestion. You probably know that the normal '/tazer' in the GF's gamemode, but the suggestion he told me is actually, awesome, but I'm not qualified to do it. That's why I'm requesting your help =)
So, you simply type /tazer, and it brings up a SDPistol. When you'll shoot someone, it will freeze him for 15
seconds. When he'll retype /tazer, it will give him back the pistol he had.
This is what I currently have: if ( GetPlayerWeapon (playerid) = 23) -- So, if the player has the SDPistol (id 23)
if (strcmp(cmd, "/tazer", true) = 0) -- It sets tazer[playerid] = 1
I actually block here:
If the player shoots when he has the tazer
If the player receives a SDpistol bullet
If I know both these function
it would be alright.
Thanks
I currently own a SA:MP server and one of my player told me an interesting suggestion. You probably know that the normal '/tazer' in the GF's gamemode, but the suggestion he told me is actually, awesome, but I'm not qualified to do it. That's why I'm requesting your help =)
So, you simply type /tazer, and it brings up a SDPistol. When you'll shoot someone, it will freeze him for 15
seconds. When he'll retype /tazer, it will give him back the pistol he had.
This is what I currently have: if ( GetPlayerWeapon (playerid) = 23) -- So, if the player has the SDPistol (id 23)
if (strcmp(cmd, "/tazer", true) = 0) -- It sets tazer[playerid] = 1
I actually block here:
If the player shoots when he has the tazer
If the player receives a SDpistol bullet
If I know both these function
it would be alright.
Thanks