[Map] [MAP] ELEVADOR Para [godfather]
#1

e um fs muito simples que fas um elevador subir e descer no seu server. imagens:









Quote:

//adicione no seu godfather:
na aba dos news:
new ELEVADOR;
new ELEVADORGate;
//No public OnGameModeInit():
ELEVADOR = CreateObject(971,979.304,-1522.150,12.521,89.381,-1.719,0.859);
ELEVADORGate = CreateObject(980,979.163,-1525.634,20.164,0.0,0.0,0.0);
//no public OnPlayerCommandText(playerid, cmdtext[]):
if(strcmp(cmd, "/elevador", true) == 0)
{
if (PlayerInfo[playerid][pMember] == 1)
{
MoveObject(ELEVADOR, 979.318,-1522.202,23.302,4.0);
MoveObject(ELEVADORGate, 979.140,-1525.720,14.668,4.0);
SetTimerEx("closegate",5000, false, "i", playerid);
SendClientMessage(playerid,COLOR_YELLOW,"Portao estб abrindo. Vocк tem 5 segundos antes que ele feche.");
return 1;
}
}
//no final do seu game mode:
public closegate(playerid)
{

if (PlayerInfo[playerid][pMember] == 1)
{
MoveObject(ELEVADOR, 979.304,-1522.150,12.521,89.381,2.0);
MoveObject(ELEVADORGate, 979.163,-1525.634,20.164,2.0);
return 1;
}

se voce fiser tudo certo devera funcionar igual na imagem
Reply


Messages In This Thread
[MAP] ELEVADOR Para [godfather] - by xolp25 - 12.12.2009, 22:27
Re: [FS] ELEVADOR Para [godfather] - by xolp25 - 12.12.2009, 22:28
Re: [FS] ELEVADOR Para [godfather] - by Blacknedvertigo - 12.12.2009, 22:59
Re: [FS] ELEVADOR Para [godfather] - by xolp25 - 13.12.2009, 01:30
Re: [FS] ELEVADOR Para [godfather] - by KingstoN* - 13.12.2009, 13:34
Re: [FS] ELEVADOR Para [godfather] - by RoamPT - 13.12.2009, 17:30
Re: [FS] ELEVADOR Para [godfather] - by KingstoN* - 13.12.2009, 17:35
Re: [FS] ELEVADOR Para [godfather] - by RoamPT - 13.12.2009, 17:38
Re: [FS] ELEVADOR Para [godfather] - by xolp25 - 13.12.2009, 20:18
Re: [FS] ELEVADOR Para [godfather] - by gangster_PT - 13.12.2009, 20:21
Re: [FS] ELEVADOR Para [godfather] - by xolp25 - 14.12.2009, 12:35
Re: [MAP] ELEVADOR Para [godfather] - by maykon157 - 02.04.2010, 10:00
Re: [FS] ELEVADOR Para [godfather] - by andmeida10 - 02.04.2010, 10:41
Re: [MAP] ELEVADOR Para [godfather] - by Guedes747 - 02.04.2010, 13:50
Re: [MAP] ELEVADOR Para [godfather] - by andmeida10 - 02.04.2010, 15:05
Re: [MAP] ELEVADOR Para [godfather] - by SlashPT - 05.04.2010, 19:40
Re: [MAP] ELEVADOR Para [godfather] - by PatrickChucky - 10.04.2010, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)