22.09.2012, 11:59
pawn Код:
public OnPlayerText(playerid, text[])
}
if(IsOnAdminDuty[playerid] == 1) {
new
blahsdwqe123[128]
,namwe123e[24]
;
GetPlayerName(playerid, namwe123e, 24);
format(blahsdwqe123, sizeof blahsdwqe123, "Admin %s: %s", namwe123e, text);
return SendClientMessageToAll(COLOR_PINK, blahsdwqe123), 0;
}
pawn Код:
CMD:aduty(playerid,params[]) // Onduty
{
if(PInfo[playerid][Level] < 1)
{
SendClientMessage(playerid,-4,"ERROR: You are not allowed to use this command!");
return 1;
}
if(IsOnAdminDuty[playerid] == false)
{
IsOnAdminDuty[playerid] = true;
new pname[24],dstring[124];
GetPlayerName(playerid,pname,sizeof(pname));
format(dstring,sizeof(dstring),"Administrator %s is now on duty.",pname);
SendClientMessageToAll(RED,dstring);
SetPlayerHealth(playerid,99999);
SetPlayerArmour(playerid,99999);
SetPlayerSkin(playerid,217);
}
return 1;
}
I had it working on ladmin but now i need it inside my own gamemode ZCMD