SetPlayerCheckpoint(playerid,-1455.241699,1488.627197, 7.101562,1.0); |
SetPlayerCheckpoint(playerid,-1430.084228,1490.141357, 7.101562,1.0); |
SetPlayerCheckpoint(playerid,-1404.385620,1487.339111, 7.101562,1.0); |
SetPlayerCheckpoint(playerid,-1382.949340,1480.652465, 8.562500,1.0); |
SetPlayerCheckpoint(playerid,-1376.807617,1491.879760, 11.203125,1.0); |
SetPlayerCheckpoint(playerid,-1391.966186,1483.115600, 1.867187,1.0); |
SetPlayerCheckpoint(playerid,-1433.286132,1483.311889, 1.867187,1.0); |
SetPlayerCheckpoint(playerid,-1428.165039,1490.043457, 1.867187,1.0); |
SetPlayerCheckpoint(playerid,-1393.308227,1496.295532, 1.873473,1.0); |
SetPlayerCheckpoint(playerid,-2402.665283,2308.566162, -0.680399,1.0); |
YCMD:robship(playerid, params[], help)
{
if(help) return SendClientMessage(playerid,gray,"/robship Is used to rob a ship");
if(IsPlayerInRangeOfPoint(playerid,2.5, -1455.241699,1488.627197, 7.101562) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1430.084228,1490.141357, 7.101562) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1404.385620,1487.339111, 7.101562) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1382.949340,1480.652465, 8.562500) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1376.807617,1491.879760, 11.20312) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1391.966186,1483.115600, 1.867187) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1433.286132,1483.311889, 1.867187) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1428.165039,1490.043457, 1.867187) ||
IsPlayerInRangeOfPoint(playerid,2.5, -1393.308227,1496.295532, 1.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;
}