18.12.2010, 11:53
try this maybe tell me if works
pawn Код:
new ExT;
forward message(playerid,X,Y,Z);
forward OnPlayerPrivmsg(/*W/E suppose to be here*/);
forward OnPlayerInfoChange(/*W/E suppose to be here*/);
public OnPlayerEnterCheckpoint(playerid)
{
if(gTeam[playerid] == Team1)
{
new Float:X,Float:Y,Float:Y;
GetPlayerPos(playerid,X,Y,Z);
GameTextForPlayer(playerid,"Stay in the checkpoint for ~g~10 seconds!",3000,3);
new pName[24];
new str[128];
GetPlayerName(playerid, pName, 24);
format(str, 128, "%s is placing the bomb!", pName);
SendClientMessageToAll(COLOR_INTRO, str);
ExT=SetTimerEx("message",10000,false,"ifff",playerid,X,Y,Z);
}
else if(gTeam[playerid] == Team2)
GameTextForPlayer(playerid,"~g~Defend this checkpoint",3000,3);
return 1;
}
public message(playerid,Float:X,Float:Y,Float:Z)
{
DisablePlayerCheckpoint();
CreateExplosion(X,Y,Z,2,10)
return KillTimer(ExT);
}