25.02.2014, 17:33
pawn Код:
CMD:lspdlocker(playerid, params[])
{
new str[128];
if(IsPlayerInRangeOfPoint(playerid, 3.0, 254.0871,73.6980,1003.6406,181.3983))
{
if(PInfo[playerid][pCop] >= 2 && PInfo[playerid][OnDuty] == 1)
{
ShowPlayerDialog(playerid,1212,DIALOG_STYLE_LIST,"LSPD LOCKER","Weapons\nSkins\nArmour/Pills", "OK","CANCEL");
format(str, sizeof(string)," You are not an OnDuty Officer, %s %s",copLevel(playerid),PlayerName(playerid));
SendClientMessage(playerid,COLOR_GREY,str);
}
}
else
{
format(str, sizeof(string)," You are not an OnDuty Officer, %s %s",copLevel(playerid),PlayerName(playerid));
SendClientMessage(playerid,COLOR_GREY,str);
return 1;
}
return 1;
}
CMD:onduty(playerid, params[])
{
if(PInfo[playerid][pCop] >= 2)
{
SendClientMessage(playerid, COLOR_GREEN, "fuck siv");
PInfo[playerid][OnDuty] = 1;
}
else //if he has not got the permissions
{
SendClientMessage(playerid, COLOR_RED, "OMG are you stupid fuck siv"); //return this message
return 1;
}
return 1;
}