Hi Guys Someone Help With This
#1

H! Guys only i want Checkpoint This How To Make Commands With This All Checkpoint its Name /robship
and how to add in my server please help and + rep
Quote:

SetPlayerCheckpoint(playerid,-1455.241699,1488.627197, 7.101562,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1430.084228,1490.141357, 7.101562,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1404.385620,1487.339111, 7.101562,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1382.949340,1480.652465, 8.562500,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1376.807617,1491.879760, 11.203125,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1391.966186,1483.115600, 1.867187,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1433.286132,1483.311889, 1.867187,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1428.165039,1490.043457, 1.867187,1.0);

Quote:

SetPlayerCheckpoint(playerid,-1393.308227,1496.295532, 1.873473,1.0);

Quote:

SetPlayerCheckpoint(playerid,-2402.665283,2308.566162, -0.680399,1.0);

Reply
#2

please guys i want this to know checkpoint with commands to i can make any things again please +rep
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)