29.02.2012, 14:40
pawn Код:
CMD:pc(playerid,params[])
{
if (APlayerData[playerid][PlayerLevel] >= 2)
{
new targetplayer, string2[128], string3[128], string4[128];
if(sscanf(params, "u", targetplayer)) return SendClientMessage(playerid, 0xFFFFFFFF, "[USAGE]: /pc [id]");
else
{
new string[128] = "Player Checks:\n";
if (APlayerData[targetplayer][JobStarted] == true)
{
strcat(string4, "{FFFFFF}On a mission: {66FF00}Yes\n");
}
else strcat(string4, "{FFFFFF}On a mission: {FF0000}No\n");
if(APlayerData[targetplayer][MafiaLoad] == true)
{
strcat(string2, "{FFFFFF}Maffia load: {66FF00}Yes\n");
}
else strcat(string2, "{FFFFFF}Maffia load: {FF0000}No\n");
if (APlayerData[targetplayer][Overloaded] == true)
{
strcat(string3, "{FFFFFF}Overloaded: {66FF00}Yes\n");
}
else strcat(string3, "{FFFFFF}Overloaded: {FF0000}No\n");
new bigstring[256];
strcat(bigstring,string);
strcat(bigstring,string2);
strcat(bigstring,string3);
strcat(bigstring,string4);
ShowPlayerDialog(playerid,YOUR_ID,DIALOG_STYLE_MSGBOX,"Text here", bigstring, "OK", "");
}
}
else return 0;
return 1;
}