SA-MP Forums Archive
Help me please! - 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: Help me please! (/showthread.php?tid=383871)



Help me please! - _Mohit_ - 09.10.2012

I have a Cops And Robbers gm.I want a code which jails cops when they kill innocent's.


Re: Help me please! - Roel - 09.10.2012

Wrong thread, to help you with problems, you cannot ask here if somebody can make something for you.
If you don't know how to script, find a scripter or learn to script.


Re: Help me please! - Jarnu - 09.10.2012

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   if(gTeam[killerid] == COPS && gTeam[playerid] == INNOCENT) //WARNING!! You have to edit it according to your script!! thats just an example!
   TogglePlayerControllable(playerid,true);
   SetPlayerPos(player1,197.6661,173.8179,1003.0234);
   SetPlayerInterior(player1,3);
   SetCameraBehindPlayer(playerid);
   return 1;
}
Just to unjail him make a timer or command whatever you want


Re: Help me please! - _Mohit_ - 09.10.2012

tnx jarnu