02.12.2015, 06:48
i have this:
i need if player use upper command ,and type this command:
off upper command.
And if not use sendcilentmassage.
Код:
CMD:ar(playerid, params[])
{
if(gTeam[playerid] == TEAM_Internationalforces)
{
SendClientMessage(playerid,COLOR_BLUE,"i need air recon online!");
SendClientMessage(playerid,COLOR_BLUE,"copy that we are coming to your position in 2 sec!");
SendClientMessage(playerid,COLOR_RED,"You lost $90000 for air recon.");
TogglePlayerControllable(playerid, 0);
new Float:v, Float:c, Float:r;
GetPlayerPos(playerid, v, c, r);
SetPlayerCameraPos(playerid, v, c, r+30);
SetPlayerCameraLookAt(playerid, v, c, r);
SetTimer("endar", 60000, false);
GivePlayerMoney(playerid, -90000);
return SendClientMessage(playerid,COLOR_BLUE,"We are in your position you can use Satellite!");
}
if(gTeam[playerid] != TEAM_Internationalforces) return SendClientMessage(playerid,COLOR_RED,"ERROR: Your team dosent have Satellite!");
return 1;
}
Код:
CMD:endar(playerid, params[])
{
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
And if not use sendcilentmassage.

