Quote:
Originally Posted by ViruZz
pawn Код:
CreateObject(980,-967.79998779,2715.10009766,52.29999924,0.00000000,0.00000000,277.50000000); //object(airportgate) (1) return 1; } MoveObject(Gate,-967.79998779,2715.10009766,52.29999924,0.00000000,0.00000000,277.50000000); return 0;
To explain what happened you are creating the gate twice. The gate is already created when the Gamemode Initialize so why will you create it again in your CMD?
So for your CMD Use this
pawn Код:
public OnPlayerCommandText( playerid, cmdtext[ ] ) { if( !strcmp( cmdtext, "/open", true ) ) { MoveObject( Gate, -967.79998779, 2715.10009766, 52.29999924, 0.00000000, 0.00000000, 277.50000000 ); return 1; } return 0; }
|
Because I need a command to open?