Scripting HELP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Scripting HELP (
/showthread.php?tid=406075)
Scripting HELP -
navroopsingh - 08.01.2013
I am Navroop, and I am kinda stuck in the gamemode that i am editing and i want to make a command like this like when a player a is wanted he cant use the getcar command and gohome command and other command that teleports him. Please help me i really need help.

I'll ask more questions if i need your help again!
Re: Scripting HELP -
navroopsingh - 10.01.2013
Looks like no one wana help me!
Re: Scripting HELP -
EAsT-OAK_510 - 10.01.2013
SetPlayerWantedLevel
GetPlayerWantedLevel
You will need to use these functions. To disable certain commands for a user you will need to check if they have a wanted level.
Re: Scripting HELP -
JavoDiaz - 10.01.2013
Add this var to the top of your gamemode
pawn Код:
new bool:Wanted[MAX_PLAYERS char];
When the player is wanted, in that code put:
on OnPlayerConnect put:
pawn Код:
Wanted{playerid} = false;
and on your commands getcar, gohome and all the teleport commands you should put:
pawn Код:
if(Wanted{playerid} == true) return SendClientMessage(playerid, ~1, "You can't teleport, you are WANTED!");
That's all.
Re: Scripting HELP -
navroopsingh - 10.01.2013
Quote:
Originally Posted by JavoDiaz
Add this var to the top of your gamemode
pawn Код:
new bool:Wanted[MAX_PLAYERS char];
When the player is wanted, in that code put:
on OnPlayerConnect put:
pawn Код:
Wanted{playerid} = false;
and on your commands getcar, gohome and all the teleport commands you should put:
pawn Код:
if(Wanted{playerid} == true) return SendClientMessage(playerid, ~1, "You can't teleport, you are WANTED!");
That's all.
|
Thanks dude, thats all i need! I rep + ya!