23.07.2012, 01:43
e qual o problema neste code ? me parece funcional.
Tenta com esse.
pawn Код:
if (strcmp("/camera", cmdtext, true) == 0)
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_RED, " Vocк nгo й um policial!");
return 1;
}
if(PlayerToPoint(5.0,playerid,217.3896,81.3217,1005.0391))
if(Spawned[playerid] == 1)
{
PlayerMenu[playerid] = 0;
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(CCTVMenu[0], playerid);
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "De spawn primeiro por favor!");
}
return 1;
}
pawn Код:
if (strcmp("/camera", cmdtext, true) == 0)
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_RED, " Vocк nгo й um policial!");
return 1;
}
if(!Spawned[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "vocк nгo esta logado");
return 1;
}
if(PlayerToPoint(5.0,playerid,217.3896,81.3217,1005.0391))
{
PlayerMenu[playerid] = 0;
TogglePlayerControllable(playerid, 0);
ShowMenuForPlayer(CCTVMenu[0], playerid);
}
return 1;
}