05.08.2015, 21:03
pawn Код:
CMD:mdc(playerid, params[])
{
if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, " Nu esti politist !");
if(!IsACopCar(GetPlayerVehicleID(playerid)) && !PlayerToPoint(5.0, playerid, 253.9280,69.6094,1003.6406)) return SendClientMessage(playerid, COLOR_GRAD2, " Nu esti intr-un vehicul de politie.");
new giveplayerid;
new sendername[MAX_PLAYER_NAME], string[256];
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GRAD2, "{00FF00}Folosire:{FFFFFF} /mdc [playerid/numejucator]");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, " Acel jucator e offline !");
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
new string[56], bigstring[512];
format(string, sizeof(string), "Police MDC\n"),strcat(bigstring, string); //Add the coler as {FFFFFF}..
format(string, sizeof(string), "Nume: %s\n", sendername),strcat(bigstring, string);
format(string, sizeof(string), "Crima: %s\n", PlayerCrime[giveplayerid][pAccusedof]),strcat(bigstring, string);
format(string, sizeof(string), "Reclamat: %s\n", PlayerCrime[giveplayerid][pVictim]),strcat(bigstring, string);
format(string, sizeof(string), "Reclamant: %s\n", PlayerCrime[giveplayerid][pAccusing]),strcat(bigstring, string);
format(string, sizeof(string), "Motiv : %s\n", PlayerCrime[giveplayerid][pBplayer]),strcat(bigstring, string);
,strcat(bigstring, "________________________________________________________");
new dialogid = 0;//Change 0 to an unused dialog id.
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "caption", bigstring, "Ok", "")
return 1;
}