28.10.2009, 11:09
could someone make me a new mdc that includes a lot of info about the player from his stats
below is my original i want one that includes phone number e.t.c info about the player
below is my original i want one that includes phone number e.t.c info about the player
Код:
if(strcmp(cmd, "/mdc", true) == 0) { if(IsPlayerConnected(playerid)) { if(!IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, " You are not a Cop !"); return 1; } new tmpcar = GetPlayerVehicleID(playerid); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /mdc [playerid/PartOfName]"); return 1; } //giveplayerid = strval(tmp); giveplayerid = ReturnUser(tmp); if(IsACopCar(tmpcar)||PlayerToPoint(5.0, playerid, 253.9280,69.6094,1003.6406)) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, sendername, sizeof(sendername)); SendClientMessage(playerid, TEAM_BLUE_COLOR,"______-=MOBILE DATA COMPUTER=-_______"); format(string, sizeof(string), "Name : %s", sendername); SendClientMessage(playerid, COLOR_WHITE,string); format(string, sizeof(string), "Crime : %s", PlayerCrime[giveplayerid][pAccusedof]); SendClientMessage(playerid, COLOR_GRAD2,string); format(string, sizeof(string), "Claimant : %s", PlayerCrime[giveplayerid][pVictim]); SendClientMessage(playerid, COLOR_GRAD3,string); format(string, sizeof(string), "Reported : %s", PlayerCrime[giveplayerid][pAccusing]); SendClientMessage(playerid, COLOR_GRAD4,string); format(string, sizeof(string), "Accused : %s", PlayerCrime[giveplayerid][pBplayer]); SendClientMessage(playerid, COLOR_GRAD5,string); SendClientMessage(playerid, TEAM_BLUE_COLOR,"_______________________________________"); } } else { SendClientMessage(playerid, COLOR_GREY, " That player is Offline !"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Police Vehicle or in the Police Department."); return 1; } } return 1; }