10.02.2010, 00:56
Hello, I'm wondering if it's possible to make this command into a /removeroadblock so it can delete the roadblock I just deployed?
Thanks
Код:
if(strcmp(cmd, "/roadblock", true) == 0)
{
if(gTeam[playerid] == TEAM_LSPD || gTeam[playerid] == TEAM_FBI)
{
if(PlayerInfo[playerid][LAERank] >= 1)
{
new Float:pX, Float:pY, Float:pZ, Float:pA;
GetPlayerPos(playerid, pX, pY, pZ);
GetPlayerFacingAngle(playerid, pA);
CreateObject(981, pX, pY, pZ, 0.0, 0.0, pA);
SendClientMessage(playerid, COLOR_BLUE, "You have successfully posted a roadblock.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not authorized to use that command.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not a Law Enforcer.");
return 1;
}
}

