29.01.2010, 19:11
if(strcmp(cmd, "/pce", true) == 0)
{
if ((PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17) && PlayerToPoint(15.0, playerid, 1471.7899, -1495.9683, 13.549) { //GateGaragem
MoveObject( gatepf3, 1465.1579589844, -1496.0224609375, 14.221565246582,89.324493408203);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("PFClosed3", 5000, false);
} else {
//SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e PF ***");
}
return 1;
}
{
if ((PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17) && PlayerToPoint(15.0, playerid, 1471.7899, -1495.9683, 13.549) { //GateGaragem
MoveObject( gatepf3, 1465.1579589844, -1496.0224609375, 14.221565246582,89.324493408203);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("PFClosed3", 5000, false);
} else {
//SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e PF ***");
}
return 1;
}