Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Simple anti spawn kill with objects by stuun23
- //Please, if you have found any bugs please send me private message at sa-mp forums
- //Username: Stuun
- #include <a_samp>
- main()
- {
- print("Anti spawn kill by stuun23");
- return 1;
- }
- public OnGameModeInit()
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerHealth(playerid, 9999999999999);
- SendClientMessage(playerid, -1, "{FF0000}You are protected by spawn protection!");
- SetPlayerAttachedObject(playerid, 0, 18637, 17, -0.296999, -0.021000, 0.156000, -80.400009, -169.100128, 105.900047, 1.000000, 1.000000, 1.000000, 0, 0);
- SetPlayerAttachedObject(playerid, 1, 19163, 2, 0.064000, 0.026000, -0.007000, 58.999969, 91.500015, 110.199928, 1.089000, 1.298000, 1.000000, 0, 0);
- SetTimerEx("SP", 5000, false, "i", playerid);
- return 1;
- }
- forward SP(playerid);
- public SP(playerid)
- {
- SendClientMessage(playerid, -1, "{00CC00}You are no longer spawn protected.");
- SetPlayerHealth(playerid, 100);
- for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
- if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement