02.02.2012, 14:30
pawn Code:
CMD:dutyon(playerid,params[]) {
new extraid; // You have to define extraid
if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 && playerVariables[playerid][pGroup] != 0) {
new string[64];
if(IsPlayerInRangeOfPoint(playerid, 5, 264.1055,109.8094,1004.6172) && GetPlayerInterior(playerid) == 10) {
SendClientMessage(playerid, COLOR_GREY, "Turned your duty to [ON]");
format(szMessage, sizeof(szMessage), "(Group) "EMBED_WHITE"%s is now on duty..", szPlayerName);
SendToGroup(playerVariables[extraid][pGroup], COLOR_GENANNOUNCE, szMessage);
SetPlayerColor(playerid,COLOR_BLUE)
}
}
return 1;
}