31.05.2011, 22:44
dame 26 erros tao aqui os 3 portoes, alguma chave falta aqui :S
PHP код:
if(!strcmp(cmdtext, "/abrirportaopsp", true)) // By Ellis
{
if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if (PlayerToPoint(15, playerid,1258.5428,489.5095,19.8649)) //local onde pode usar o comando
{
MoveObject(PortaoFBI,1267.76416016,480.48736572,21.32426071, 0.8); //cordenadas portao aberto
SetTimer("PortaoPSP", 12000, 0);
SendClientMessage(playerid, COLOR_BLUE,"O portгo foi aberto e serб fechado em 7 segundos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s abre o portгo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid, 1153, 1258.5428,489.5095,19.8649);
return 1;
}
return 1;
}
return 1;
}
if(!strcmp(cmdtext, "/abrirportao", true)) // para o instrutor
{
if(PlayerInfo[playerid][pLeader] == 11)
{
if (PlayerToPoint(15, playerid,1413.13378906,276.82910156,18.55468750)) //local onde pode usar o comando
{
MoveObject(PortaoDeLicencas,1419.46032715,270.71334839,18.55468750, 0.8); //cordenadas portao aberto
SetTimer("PortaoLicencas", 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.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerPlaySound(playerid, 1153, 1413.13378906,276.82910156,18.55468750);
return 1;
}
return 1;
}
return 1;
}
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;
}