05.02.2016, 22:02
Why dont you use cases and InRangeOf code like this? Its better than yours.
PHP код:
if(IsPlayerInRangeOfPoint(playerid,3.0,X,Y,Z Coordinates) {
if(PlayerInfo[playerid][pJob] == 0){
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "You have signed in the papers and you are not workign for (job name)");
pInfo[playerid][pJob] = 1;
return 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, X,Y,Z Coordinates)) {
if(PlayerInfo[playerid][pJob] == 0){
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You have signed up in the papers and you are now working for (job name)");
pInfo[playerid][pJob] = 2;
return 1;
}
}
else if (IsPlayerInRangeOfPoint(playerid,3.0,X,Y,Z Coordinates ._.)) {
if(PlayerInfo[playerid][pJob] == 0){
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "*You have signed up in the papers and you are now working for (job name)");
pInfo[playerid][pJob] = 3;
return 1;
}