29.12.2012, 15:32
Olб gente tudo bem?
Gostariam que me ajuda-se com meu codigo de abrir portгo na hq de admin's que meu mapper fez, nгo estou consiguindo colocar apenas para admin abrir.
Gostariam que me ajuda-se com meu codigo de abrir portгo na hq de admin's que meu mapper fez, nгo estou consiguindo colocar apenas para admin abrir.
pawn Код:
if(strcmp(cmd, "/abriradmin", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1) && PlayerToPoint(15.0, playerid, 1878.9000244, 703.2999878, 12.5000000)) { //GateGaragem
// ja tentei assim tbm
//if(IsPlayerAdmin(playerid)) && PlayerToPoint(15.0, playerid, 1878.9000244, 703.2999878, 12.5000000)) { //GateGaragem
MoveObject( DIEGOFDP, 1878.9000244, 703.2999878, 7.0000000,3);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s abriu este portгo!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("adm2", 5000, false);
} else {
//SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e ADMIN ***");
}
return 1;
}