31.05.2011, 22:49
PHP код:
if(!strcmp(cmdtext, "/abrirgaragem", true)) // para o instrutor
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if (PlayerToPoint(15, playerid,652.7355,-608.3027,16.2864))
{
MoveObject(pdgate1,665.98645020,-610.20446777,18.10932922, 0.8);
SetTimer("GateClose", 12000, 0);
SendClientMessage(playerid, COLOR_BLUE,"A garagem foi aberta e serб fechada em 7 segundos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s abre o portгo policial.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid, 1153, 652.7355,-608.3027,16.2864);
return 1;
}
return 1;
}
return 1;
}