Guest User

Untitled

a guest
Jan 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.97 KB | None | 0 0
  1.     /*
  2.      Anti spawn kill by Rio
  3.      Il mio primo include ._.
  4.      
  5.     */
  6.      
  7.     #if defined _sp_included
  8.             #endinput
  9.     #endif
  10.     #define _sp_included
  11.      
  12.     // Native
  13.      
  14.     native NoKillOn(playerid);
  15.     native NoKillOff(playerid);
  16.      
  17.     #include <a_samp>
  18.      
  19.     // Variabili
  20.     new Text3D:nkill[MAX_PLAYERS];
  21.      
  22.     // Defines
  23.     #define NK 10000
  24.     #define NP 100
  25.      
  26.     stock NoKillOn(playerid)
  27.     {
  28.             SetPlayerHealth(playerid, NK);
  29.             new Float:X, Float:Y, Float:Z;
  30.             GetPlayerPos(playerid, X, Y, Z);
  31.             nkill[playerid] = Create3DTextLabel("Protezione Spawn", 0x00EC00FF, X, Y, Z, 40.0, 0, 1);
  32.             Attach3DTextLabelToPlayer(nkill[playerid],playerid,X, Y, Z+0.3);
  33.             return 1;
  34.     }
  35.      
  36.     stock NoKillOff(playerid)
  37.     {
  38.             SetPlayerHealth(playerid, NP);
  39.             Delete3DTextLabel(nkill[playerid]);
  40.             return 1;
  41.     }
Add Comment
Please, Sign In to add comment