20.10.2009, 09:39
pawn Код:
if (strcmp("/strike", cmdtext, true, 7) == 0)
{
if(AirStrike[playerid] == 1)
{
new Float:X, Float:Y;
new Float:PX, Float:PY, Float:PZ;
GetPlayerPos(playerid,PX,PY,PZ);
GetXYInFrontOfPlayer(playerid,X,Y,20);
SetPlayerVirtualWorld(playerid, 1);
SetPlayerCameraPos(playerid,PX,PY,PZ + 10.00);
SetPlayerCameraLookAt(playerid,X,Y,PZ);
TogglePlayerControllable(playerid,0);
SetPlayerCheckpoint(playerid, X, Y, PZ, 3.00);
}
else
{
SendClientMessage(playerid,MAROON,"Airstrikes not available");
}
return 1;
}