26.07.2014, 22:10
Quote:
|
Me olvide de algo osea quiero que por ejemplo cuando un policia este en el auto y aprete la letra Y se abra el porton pero si no esta en el auto no pueda abrirlo.
їComo seria para ponerlo asi con la letra y todo? |
pawn Код:
if(newkeys == KEY_YES)
{
new conductor = GetPlayerState(playerid);
if(IsAPolicia(playerid)){
if(!conductor == PLAYER_STATE_DRIVER) return SendClientMessage(playerid,-1,"Debes Ser Conductor.");
if (PlayerToPoint(10, playerid,1589.053344,-1638.123168,14.122960)){
MoveDynamicObject(pdgate1,1599.053344,-1638.123168,14.122960, 0.8);
PlayerPlaySound(playerid, 1153, 1589.053344,-1638.123168,14.122960);
return 1;
}
if (PlayerToPoint(15, playerid,1545.7398681641, -1627.7280273438, 15.206203460693)){
MoveDynamicObject(pdgate2,1545.7392578125, -1627.7275390625, 20.381204605103, 3.0);
SetTimer("GateClose5", 7000, 0);
}
}

