Quote:
Originally Posted by Stanford
For example:
Under ongamemodeinit you put the object like this:
pawn Код:
new nana = CreateObject(1318, 3214.0, 2412.3, 13.24, 0.0, 0.0, 0.0, 90.0);
and the command to destroy it should be like this:
pawn Код:
CMD:destroyobjects(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(IsPlayerAdmin(playerid)) // remove this if you want (rcon administrator) { DestroyObject(nana); } } return 1; }
I've used ZCMD, so if you're going to use it make sure you have by Zeex in the top of your script!.
|
and if I these objects were doing on the car suppose!
EXample:
Код HTML:
CreateVehicleObject(1116, GetPlayerVehicleID(playerid),0.000000,3.159999,-0.239999,0.000000,0.000000,0.000000,100.0);