Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- main(){}
- new bool:Spawnou[MAX_PLAYERS];
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- if(Spawnou[playerid])
- {
- SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0 );
- SpawnPlayer(playerid);
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- {
- RemovePlayerAttachedObject(playerid, i);
- }
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- Spawnou[playerid] = false;
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- Spawnou[playerid] = true;
- return 1;
- }
- CMD:vida(playerid) return SetPlayerHealth(playerid, 5); // debug
Advertisement
Add Comment
Please, Sign In to add comment