05.03.2011, 02:23
pawn Код:
new RobbedRecently[MAX_PLAYERS];
forward RobbedRecent();
public OnFilterScriptInit()
{
SetTimer("RobbedRecent", Minutes(2), true);
return 1;
}
public RobbedRecent()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(RobbedRecently[i] == 1)
{
RobbedRecently[i] = 0;
return 1;
}
}
return 1;
}
pawn Код:
SendClientMessage(playerid, 0xFF0000FF, "You have robbed someone recentlt, please wait...!");
but how to make something like this:
pawn Код:
format(string, sizeof(string), "%s(%d) has been robbed by SOMEONE ELSE, please wait...", targetname, targetid);
SendClientMessage(playerid, COLOR_ERROR, string);