01.08.2011, 20:01
pawn Код:
// Topo do GameMode; abaixo das includes
new Portao[2];
// OnGameModeInit
Portao[0] = CreateObject(988, -2033.45776367, -102.98937988, 38.94689178, 0.00000000, 0.00000000, 359.96704102);
Portao[1] = CreateObject(988, -2022.41369629, -119.42974854, 38.94689178, 0.00000000, 0.00000000, 359.96704102);
// OnPlayerCommandText
if(!strcmp(cmdtext, "/abrirporta", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк abriu o portгo!");
MoveObject(Portao[0], -2033.45776367, -102.98937988,32.94689178, 4.0);
MoveObject(Portao[1], -2022.41369629,-119.42974854,38.94689178, 4.0);
return 1;
}
if(!strcmp(cmdtext, "/fecharporta", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Vocк fechou o portгo!");
MoveObject(Portao[0], -2033.45776367, -102.98937988, 38.94689178, 4.0);
MoveObject(Portao[1], -2022.41369629, -119.42974854, 38.94689178, 4.0);
return 1;
}