Scripting HELP
#4

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:

pawn Код:
Wanted{playerid} = true;
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.
Reply


Messages In This Thread
Scripting HELP - by navroopsingh - 08.01.2013, 23:14
Re: Scripting HELP - by navroopsingh - 10.01.2013, 23:07
Re: Scripting HELP - by EAsT-OAK_510 - 10.01.2013, 23:21
Re: Scripting HELP - by JavoDiaz - 10.01.2013, 23:24
Re: Scripting HELP - by navroopsingh - 10.01.2013, 23:41

Forum Jump:


Users browsing this thread: 1 Guest(s)