Problem with command
#2

You should get the position first then put that Range

EDIT:

PHP код:
CMD:hcspawnpos(playeridparams[]) {
    if(
getPlayerBusinessID(playerid) >= 1) {
        new
            
businessID getPlayerBusinessID(playerid);
            
GetPlayerPos(playeridbusinessVariables[businessID][bMiscPos][0], businessVariables[businessID][bMiscPos][1], businessVariables[businessID][bMiscPos][2]);
        if(
businessVariables[businessID][bType] == 16) {
            if(
IsPlayerInRangeOfPoint(playerid30.0businessVariables[businessID][bExteriorPos][0], businessVariables[businessID][bExteriorPos][1], businessVariables[businessID][bExteriorPos][2])) {
                
SendClientMessage(playeridCOLOR_WHITE"You have successfully altered the spawn position of your vehicle dealership business.");
            }
            else 
SendClientMessage(playeridCOLOR_GREY"You must be within thirty metres of the exterior of your business.");
        }
        else 
SendClientMessage(playeridCOLOR_GREY"You don't own a helicopter dealership.");
    }
    return 
1;

Reply


Messages In This Thread
Problem with command - by Ld Est Ld - 20.01.2012, 14:47
Re: Problem with command - by Bogdan1992 - 20.01.2012, 14:50
Re: Problem with command - by Konstantinos - 20.01.2012, 15:13
Re: Problem with command - by Bogdan1992 - 20.01.2012, 15:35
Re: Problem with command - by Ld Est Ld - 20.01.2012, 15:44
Re: Problem with command - by Konstantinos - 20.01.2012, 15:48
Re: Problem with command - by Ld Est Ld - 20.01.2012, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)