10.06.2015, 12:59
use this
I
Код:
public OnPlayerEnterDynamicCP(playerid,
checkpointid)
if(checkpointid == cpship) return 1;
{
if(gObjectiveReached) return 1;
if(gTeam[playerid] == TEAM_SWAT)
{
//Team_1 Enter Checkpoint
new string[265]; new str[265];
GetPlayerName(playerid, str, sizeof(str));
format(string, sizeof(string), "%s Has
Planted Explosives.",str);
SendClientMessageToAll( COLOR_PURPLE,
string);
GameTextForAll(string,4000,5);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreatePickup(1252, 1, X, Y, Z);
ApplyAnimation(playerid, "BOMBER",
"BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Bomb
Planting Animation
SendClientMessage(playerid, COLOR_RED,
"Escape ASAP Its about to explode!!");
TextDrawShowForAll(EnterCheckpoint);
}
else if(gTeam[playerid] ==
TEAM_TERRORIST)
{
//Team_2 Enter Checkpoint
SendClientMessage(playerid,
COLOR_BLUELIGHT, "Protect This Area
from SWAT");
}
return 1;
}

