Hi Guys Someone Help With This
#3

i really don't get what you want but
maybe something like this?

PHP код:
YCMD:robship(playeridparams[], help)
{
    if(
help) return SendClientMessage(playerid,gray,"/robship Is used to rob a ship");
    if(
IsPlayerInRangeOfPoint(playerid,2.5, -1455.241699,1488.6271977.101562) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1430.084228,1490.1413577.101562) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1404.385620,1487.3391117.101562) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1382.949340,1480.6524658.562500) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1376.807617,1491.87976011.20312) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1391.966186,1483.1156001.867187) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1433.286132,1483.3118891.867187) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1428.165039,1490.0434571.867187) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -1393.308227,1496.2955321.873473) || 
    
IsPlayerInRangeOfPoint(playerid,2.5, -2402.665283,2308.566162, -0.68039))
    {
        
//do something here, rob the ship
    
}
    else 
SendClientMessage(playerid,-1,"you're wrong here!");
    return 
1;

you could also store all the coords in an array and loop trough it. i did choose the fast'n ugly way :P
Reply


Messages In This Thread
Hi Guys Someone Help With This - by moustafa0550 - 22.12.2013, 11:57
Re: Hi Guys Someone Help With This - by moustafa0550 - 22.12.2013, 19:38
Re: Hi Guys Someone Help With This - by CutX - 22.12.2013, 19:47

Forum Jump:


Users browsing this thread: 3 Guest(s)