IlanZiin

Fix F4 (CezarBR)

Nov 1st, 2017
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.06 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3.  
  4.  
  5. main(){}
  6.  
  7. new bool:Spawnou[MAX_PLAYERS];
  8.  
  9. public OnGameModeInit()
  10. {
  11.     // Don't use these lines if it's a filterscript
  12.     SetGameModeText("Blank Script");
  13.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  14.     return 1;
  15. }
  16.  
  17. public OnPlayerRequestClass(playerid, classid)
  18. {
  19.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  20.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  21.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  22.  
  23.     if(Spawnou[playerid])
  24.     {
  25.         SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
  26.         SpawnPlayer(playerid);
  27.         for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  28.         {
  29.             RemovePlayerAttachedObject(playerid, i);
  30.         }
  31.     }
  32.     return 1;
  33. }
  34.  
  35. public OnPlayerDisconnect(playerid, reason)
  36. {
  37.     Spawnou[playerid] = false;
  38.     return 1;
  39. }
  40.  
  41. public OnPlayerRequestSpawn(playerid)
  42. {
  43.     Spawnou[playerid] = true;
  44.     return 1;
  45. }
  46.  
  47. CMD:vida(playerid) return SetPlayerHealth(playerid, 5); // debug
Advertisement
Add Comment
Please, Sign In to add comment