24.11.2012, 17:35
Hey I made an HQ Locker's for the Army , There's the code , But that's doesnt work : Here's the code :
Somethang wrong I did here ? and here's the pic when I do /ng the locker's CMD :
Here's the pic;s :
Код:
CMD:ng(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if(IsPlayerInRangeOfPoint(playerid,0,1209.566162,-1686.522705,-39.734062) && GetPlayerVirtualWorld(playerid) == 0 || IsPlayerInRangeOfPoint(playerid,0,1209.566162,-1686.522705,-39.734062))// NG Duty
{
ShowPlayerDialog(playerid, NGMENU, DIALOG_STYLE_LIST, "National Guard","Duty\nUniforms\nWeapons\nUndercover\nClear Suspect\nKevlar Vest\nFirst Aid Kit\nAccessories", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your NG lockers.");
}
}
return 1;
}
Somethang wrong I did here ? and here's the pic when I do /ng the locker's CMD :
Here's the pic;s :

