Advertisement
MichaelFR

SAMP FS GTA V Player Spawn

Mar 2nd, 2017
1,241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. /*Credits: Michael*/
  2.  
  3. #include <a_samp>
  4.  
  5. new Umro[MAX_PLAYERS] = 0;
  6. new Float:Pozicija[MAX_PLAYERS][3];
  7.  
  8. public OnPlayerDeath(playerid, killerid, reason)
  9. {
  10.     Umro[playerid] = 1;
  11.     GetPlayerPos(playerid, Pozicija[playerid][0], Pozicija[playerid][1], Pozicija[playerid][2]);
  12.     return 1;
  13. }
  14. public OnPlayerSpawn(playerid)
  15. {
  16.     if(Umro[playerid] == 1)
  17.     {
  18.     Umro[playerid] = 0;
  19.     SetPlayerPosFindZ(playerid,Pozicija[playerid][0]+random(100), Pozicija[playerid][1]+random(100), Pozicija[playerid][2]+10);
  20.     }
  21.     return 1;
  22. }
  23. public OnPlayerConnect(playerid)
  24. {
  25.     Umro[playerid] = 0;
  26.     return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement