25.07.2012, 23:26
Pessoal,quando coloco esse comando e o GM compila com sucesso muito rapido e fica com 0 KB ajuda ae.
pawn Код:
if (strcmp("/camera", cmdtext, true) == 0)
{
if(PlayerToPoint(5.0,playerid,217.3896,81.3217,1005.0391))
{
PlayerMenu[playerid] = 0;
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(CCTVMenu[0], playerid);
}
return 1;
}
if (strcmp("/saircamera", cmdtext, true) == 0)
{
if(CurrentCCTV[playerid] > -1)
{
SetPlayerPos(playerid, LastPos[playerid][LX], LastPos[playerid][LY], LastPos[playerid][LZ]);
SetPlayerFacingAngle(playerid, LastPos[playerid][LA]);
SetPlayerInterior(playerid, LastPos[playerid][LInterior]);
TogglePlayerControllable(playerid, 1);
KillTimer(KeyTimer[playerid]);
SetCameraBehindPlayer(playerid);
TextDrawHideForPlayer(playerid, TD);
CurrentCCTV[playerid] = -1;
return 1;
}
}
return 0;
}