25.04.2012, 18:14
(
Последний раз редактировалось Scripter12345; 25.04.2012 в 20:21.
)
How could i make it so if the player has not /setadminskin and the player does /adminduty it says " You have not entered a admin skin, to do so /setadminskin "
Thank You
Please Help Me Please
pawn Код:
CMD:adminduty(playerid, params[])
{
if(PlayerData[ID][AdminLevel] >= 1)
{
if(PlayerData[ID][AdminDuty] == 0)
{
GetPlayerName(playerid, PlayerData[playerid][OriginalName], 24);
SetPlayerName(playerid, PlayerData[playerid][AdminName]);
PlayerData[playerid][OriginalSkin] = GetPlayerSkin(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now on admin duty");
format(str2, sizeof(str2),"Admin %s Is now online",PlayerData[playerid][AdminName]);
SetPlayerSkin(playerid, PlayerData[playerid][AdminSkin]);
SetPlayerColor(playerid, COLOR_NAVY);
SendClientMessageToAll(COLOR_GREEN,str2);
PlayerData[playerid][AdminDuty] = 1;
}
else
{
if(PlayerData[ID][AdminDuty] == 1)
{
SetPlayerName(playerid, PlayerData[playerid][OriginalName]);
SetPlayerSkin(playerid, PlayerData[playerid][OriginalSkin]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now off admin duty");
format(str2, sizeof(str2),"Admin %s Is now offline",PlayerData[playerid][AdminName]);
SetPlayerColor(playerid, COLOR_WHITE);
SendClientMessageToAll(COLOR_GREEN,str2);
PlayerData[playerid][AdminDuty] = 0;
}
}
}
return 1;
}
Thank You
Please Help Me Please