04.07.2013, 13:28
can someone guide me how to make dynamic rob points where i can /rob each points itry to do it by my self but i failed
pawn Код:
CMD:rob(playerid,params[])
{
for(new i=0; i<MAX_PICK; i++)
{
if(IsPlayerInRangeOfPoint(playerid,2,PickInfo[i][pX], PickInfo[i][pY], PickInfo[i][pZ]) && GetPlayerVirtualWorld(playerid) == PickInfo[i][pVw] && GetPlayerInterior(playerid) == PickInfo[i][pInt])
{
ApplyAnimation(playerid, "ROB_BANK", "CAT_SAFE_ROB", 4.0, 1, 0, 0,0, 1);
robtime = SetTimer("robtimer",1000,true);
}
else
{
return SCM(playerid,-1,"You are not in a rob point");
}
}
return 1;
}