10.07.2018, 12:55
try now
PHP код:
public CustomPickups(playerid, newstate)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 3.0, 1173.2563,-1323.3102,15.3943))
{// Hospital near Ammu
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if(IsPlayerInRangeOfPoint(i, 3.0, 2029.5945,-1404.6426,17.2512))
{// Hospital near speedway
GameTextForPlayer(i, "~w~Type /healme to cure yourself", 5000, 5);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 2226.1716,-1718.1792,13.5165))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Body Guard~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 1493.2681,-1771.5118,18.7958))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Lawyer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 166.3772,-1675.3829,15.0859))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Drugs Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 2537.9221,-1352.2784,30.8581))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Car Mechanic~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i,3.0, 1366.4325,-1275.2096,13.5469))
{
GameTextForPlayer(i, "~g~Welcome,~n~~y~you can become a ~r~Arms Dealer~y~ here ~n~~w~Type /join if you wish to become one", 5000, 3);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i, 3.0, 2088.8499,-1187.2502,26.0547))
{
GameTextForPlayer(i, "~w~Welcome to The ~p~Ballas Head Quarters ~w~ Type /joinballas to Join ~p~ Ballas", 5000, 5);
}
else if(GetPlayerState(i) == 1 && IsPlayerInRangeOfPoint(i, 3.0, 2468.9023,-1292.6802,29.8150))
{
GameTextForPlayer(i, "~w~Welcome To ~y~Los Santos Vagos Head Quarters ~w~Type /joinvagos To Join ~y~Los Santos Vagos", 5000, 5);
}
}
return 1;
}