16.09.2012, 14:24
Hello i have a robbery checkpoint and its kinda bug + i dont know how to fix the bugs lol
When your out the checkpoint it just spams you and doesnt stop until ur standing in the checkpoint again
also if say i was in checkpoint and i got 15k every player on the server would get 15 k
pawn Код:
public Rob(playerid)
{
new string[128];
countn[playerid]--;
format(string, sizeof(string), "Attempting robbery~n~~b~%i~n~~r~Stay in the checkpoint", countn[playerid]);
TextDrawSetString(robbery, string);
TextDrawShowForPlayer(playerid, robbery);
if(!IsPlayerInDynamicCP(playerid, burgerrob))
{
SendClientMessage(playerid, COLOR_RED, "You are supposed to stay in the checkpoint!");
KillTimer(dstimer[playerid]);
TextDrawHideForPlayer(playerid, robbery);
}
if(countn[playerid]<=0)
{
if(IsPlayerInDynamicCP(playerid, burgerrob))
{
RobbedR = true;
SetTimer("RR", 300000, false);
GivePlayerMoney(playerid, random(50000));
KillTimer(dstimer[playerid]);
TextDrawHideForPlayer(playerid, robbery);
}
}
return 1;
}
also if say i was in checkpoint and i got 15k every player on the server would get 15 k