14.08.2009, 09:22
To get the playerid you need SetTimerEx instead of SetTimer.
Example:
Example:
pawn Код:
// this is the forward/ect part
forward karttimer(playerid);
//this goes in your code
SetTimerEx("karttimer", 60000, 0, "i", playerid);
// This is the public part
public karttimer(playerid)
{
new pname[24], string[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s Has failed to compleat the kart track within 1 minute.", pname);
SendClientMessageToAll(0x33AA33AA, string);
}