Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Credits: Michael*/
- #include <a_samp>
- new Umro[MAX_PLAYERS] = 0;
- new Float:Pozicija[MAX_PLAYERS][3];
- public OnPlayerDeath(playerid, killerid, reason)
- {
- Umro[playerid] = 1;
- GetPlayerPos(playerid, Pozicija[playerid][0], Pozicija[playerid][1], Pozicija[playerid][2]);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(Umro[playerid] == 1)
- {
- Umro[playerid] = 0;
- SetPlayerPosFindZ(playerid,Pozicija[playerid][0]+random(100), Pozicija[playerid][1]+random(100), Pozicija[playerid][2]+10);
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- Umro[playerid] = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement