Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:editobject(playerid)
- {
- new object, Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- object = CreateObject(2025, x, y+1, z, 0.0, 0.0, 0.0);
- return EditObject(playerid, object);
- }
- public
- OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
- {
- switch (response)
- {
- case EDIT_RESPONSE_FINAL:
- {
- printf("\nCreateObject(%d, %f, %f, %f, %f, %f, %f), objectid, fX, fY, fZ, fRotX, fRotY, fRotZ);
- fX, fY, fZ, fRotX, fRotY, fRotZ);
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement