Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Anti spawn kill by Rio
- Il mio primo include ._.
- */
- #if defined _sp_included
- #endinput
- #endif
- #define _sp_included
- // Native
- native NoKillOn(playerid);
- native NoKillOff(playerid);
- #include <a_samp>
- // Variabili
- new Text3D:nkill[MAX_PLAYERS];
- // Defines
- #define NK 10000
- #define NP 100
- stock NoKillOn(playerid)
- {
- SetPlayerHealth(playerid, NK);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- nkill[playerid] = Create3DTextLabel("Protezione Spawn", 0x00EC00FF, X, Y, Z, 40.0, 0, 1);
- Attach3DTextLabelToPlayer(nkill[playerid],playerid,X, Y, Z+0.3);
- return 1;
- }
- stock NoKillOff(playerid)
- {
- SetPlayerHealth(playerid, NP);
- Delete3DTextLabel(nkill[playerid]);
- return 1;
- }
Add Comment
Please, Sign In to add comment