09.11.2012, 17:33
Eu uso este cуdigo:
Ele compila certinho. Porйm, o portгo nгo abre!
Ele simplesmente nгo funciona!
O que hб de errado?
Код:
new PortaoCativeiro;
forward ClosePortaoCativeiro(playerid);
public OnGameModeInit()
{
PortaoCativeiro = CreateObject(980, 988.29998779297, -2129.1000976563, 14.89999961853, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/portaocativeiro", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,7.0, 1, 2, 3))
{
SendClientMessage(playerid, -1, "Portao do Cativeiro Aberto!");
MoveObject(PortaoCativeiro, 999.5, -2129.6999511719, 14.89999961853, 2.0);
SetTimer("ClosePortaoCativeiro", 5000, false);
}
return 1;
}
return 0;
}
public ClosePortaoCativeiro(playerid)
{
MoveObject(PortaoCativeiro, 988.29998779297, -2129.1000976563, 14.89999961853, 2.0);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_JUMP))
{
OnPlayerCommandText(playerid,"/portaocativeiro");
}
return 1;
}
Ele simplesmente nгo funciona!
O que hб de errado?


, Float:y, Float:z);