26.09.2014, 14:00
Hy all, please help me to create a dynamic object (Locker) when attempt a robbery, this is the code in my script :
Im new at this programming language.
Can you help me? Thanks.
Код:
new Locker = 1829;
Код:
stock CreateLocker(playerid) { new Float:x, Float:y, Float:z, Float:a; GetPlayerPos(playerid, x, y, a); GetPlayerFacingAngle(playerid, a); CreateDynamicObject(Locker,x + (20.0 * floatsin(-a, degrees)), y + (20.0 * floatcos(-a, degrees)), z+20,0,0,0); return 1; }
Код:
DestroyDynamicObject(Locker);
Can you help me? Thanks.
