18.04.2010, 16:40
Ok i have this::
and it just doesn't work when i press control button or m1, anyone knows whats wrong?
pawn Код:
if((newkeys==KEY_ACTION))
{
new marker;
new Float:x,Float:y,Float:z;
new Float:rx,Float:ry,Float:rz;
GetPlayerPos(playerid,x,y,z);
marker = CreateObject(1559, x, y, z, 0, 0, 0);
AttachObjectToPlayer(marker,playerid,x,y,z+1,rx,ry,rz);
}