09.05.2011, 16:43
Caso vocк queira que o portгo seja aberto com a tecla espaзo, use este codigo:
PHP код:
forward PortaoFA();
new Shadow;
public OnGameModeInit()
{
Shadow = CreateObject(3749, 2498.42, 2773.44, 15.77, 0.00, 0.00, 269.39);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == 128 && IsPlayerInRangeOfPoint(playerid,5.0,2498.42, 2773.44, 15.77))
{
if(PlayerInfo[playerid][pMember] != 3) return SendClientMessage(playerid, 0xEFD932FF, " Vocк nгo й membro das Forзas Armadas !");
MoveObject(Shadow,2497.82, 2779.57, 10.05,3.0)
SendClientMessage(playerid, 0xEFD932FF, " Portao Aberto. Fechando em 10 segundos.");
SetTimer("PortaoFA", 10000,false);
return 1;
}
return 1;
}
public PortaoFA()
{
MoveObject(Shadow,2497.82, 2779.57, 15.77,3.0);
return 1;
}