30.01.2015, 22:12
You didn't understand me, before the spawn protection disappears, I accidently fall to the ground, and after spawn protection disappear, it kicks me, if i didn't fall, nothing will happen.
Code:
Code:
pawn Код:
forward Spawnprotect(playerid);
public Spawnprotect(playerid)
{
SetPlayerHealth(playerid, 99);
Spawnprotection[playerid] = 0;
SetPlayerVirtualWorld(playerid, 0);
SendClientMessage(playerid, -1, "You are now no longer under spawn protection.");
GameTextForPlayer(playerid, "~r~Spawn Protection Off", 3000, 4);
if(Info[playerid][VIPLevel] >= 1)
{
GivePlayerWeapon(playerid, 5, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 27, 200);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 30, 1000);
SendClientMessage(playerid, -1, "You Have Got 2x Ammo Of Weapons For Being VIP.");
}
else
{
GivePlayerWeapon(playerid, 5, 250);
GivePlayerWeapon(playerid, 24, 250);
GivePlayerWeapon(playerid, 27, 100);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 30, 500);
}
}