09.01.2014, 12:56
The 'Checking if you got one life point' and all the other sendclientmessages in the timer shows up twice and i set the timer under onplayerspawn, whats the problem?
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Checking if you got one life point..");
SetTimerEx("Life", 10000, 0, "i", playerid);
pawn Код:
forward Life(playerid);
public Life(playerid)
{
if(pInfo[playerid][pLife] == 1)
{
if(pInfo[playerid][pAdmin])
{
SendClientMessage(playerid, COLOR_WHITE, "You cant have 1 life point without asking the owner!");
TogglePlayerControllable(playerid, 1);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You have 1 life point which has been removed from the script please tell an admin to remove it.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Loaded! you can play now.");
}
return 1;
}