Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //by gReeDy
- public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
- {
- if(response == EDIT_RESPONSE_FINAL)
- {
- new id = eData[playerid], Float:angle, string[100];
- GetPlayerFacingAngle(playerid, angle);
- if(id != -1)
- {
- AtmInfo[id][aX] = x;
- AtmInfo[id][aY] = y;
- AtmInfo[id][aZ] = z;
- AtmInfo[id][aAngle] = rz;
- DestroyDynamicObject(AtmInfo[id][aObjekat]);
- KreirajAtm(id);
- SacuvajATM(id);
- format(string,sizeof(string),"ATM ID %d je uspesno kreiran/editovan!",id);
- SCM(playerid,-1,string);
- id = -1;
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement