/deploycade How to add more ads!
#2

It can help you


Quote:

CMD:deploycade(playerid, params[])
{
if(IsACop(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessageEx(playerid, COLOR_GREY, "You must be on foot to use this command.");
return 1;
}

new string[128], Float:Position[4];
for(new i; i<MAX_BARRICADES; i++)
{
if(Barricade[i] == 0)
{
GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
GetPlayerFacingAngle(playerid, Position[3]);
Barricade[i] = CreateDynamicObject(981, Position[0], Position[1], Position[2], 0.0, 0.0, Position[3]+180.0, -1, -1, -1, 200.0);
SetPlayerPos(playerid, Position[0] - 2, Position[1] - 2, Position[2]);
new zone[MAX_ZONE_NAME];
GetPlayer3DZone(playerid, zone, sizeof(zone));
format(string, sizeof(string), "HQ: A barricade has been deployed by %s at %s.", GetPlayerNameEx(playerid), zone);
foreach (new p : Player)
{
if(IsACop(p) || IsALVMPDCop(p))
{
SendClientMessageEx(p, TEAM_BLUE_COLOR, string);
}
}
return 1;
}
}
SendClientMessageEx(playerid, COLOR_GREY, "All available barriers have been deployed.");
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not a law enforcement officer.");
}
return 1;
}

Reply


Messages In This Thread
/deploycade How to add more ads! - by Lukex - 24.05.2015, 11:46
Re: /deploycade How to add more ads! - by SoFahim - 24.05.2015, 12:16
Re: /deploycade How to add more ads! - by Lukex - 24.05.2015, 12:23
Re: /deploycade How to add more ads! - by Lukex - 24.05.2015, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)