29.02.2012, 14:33
Well the title says all, I want to create something that when u /pc someone (playercheck) You get some data of it in a msg box.
Current is in client message but I hate that way.
So how can I use a dialog for it?
Current code with client message, might be helpful:
Current is in client message but I hate that way.
So how can I use a dialog for it?
Current code with client message, might be helpful:
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:";
if (APlayerData[targetplayer][JobStarted] == true)
{
strcat(string4, "{FFFFFF}On a mission: {66FF00}Yes");
}
else
strcat(string4, "{FFFFFF}On a mission: {FF0000}No");
if(APlayerData[targetplayer][MafiaLoad] == true)
{
strcat(string2, "{FFFFFF}Maffia load: {66FF00}Yes");
}
else
strcat(string2, "{FFFFFF}Maffia load: {FF0000}No");
if (APlayerData[targetplayer][Overloaded] == true)
{
strcat(string3, "{FFFFFF}Overloaded: {66FF00}Yes");
}
else
strcat(string3, "{FFFFFF}Overloaded: {FF0000}No");
SendClientMessage(playerid, 0xFFFFFFFF, string);
SendClientMessage(playerid, 0xFFFFFFFF, string4);
SendClientMessage(playerid, 0xFFFFFFFF, string2);
SendClientMessage(playerid, 0xFFFFFFFF, string3);
}
}
else
return 0;
return 1;
}