05.10.2011, 20:17
Alguem ae tem algo Que quando digita /minhaficha aparece a ficha do cara Level de procurado , Se ta de TH , RP , Etc ou algo parecido Se alguem tiver agradeзo !
if(strcmp(cmd, "/ficha", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(!IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Policial !");
return 1;
}
new tmpcar = GetVehicleModel(GetPlayerVehicleID(playerid));
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /ficha [playerid/Parte-do-Nick]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);
if(IsACopCar(tmpcar)||PlayerToPoint(3.0, playerid, 256.7864,66.0127,1003.6406)||tmpcar==490||tmpcar==497||tmpcar==528||tmpcar==602||tmpcar==426||tmpcar==427||tmpcar==598||tmpcar==581||tmpcar==470||tmpcar==461)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
SendClientMessage(playerid, TEAM_BLUE_COLOR,"______-=FICHA CRIMINAL * MINISTЙRIO DA DEFESA=-_______");
format(string, sizeof(string), "Nome : %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), "Vнtima : %s", PlayerCrime[giveplayerid][pVictim]);
SendClientMessage(playerid, COLOR_GRAD3,string);
format(string, sizeof(string), "Relato : %s", PlayerCrime[giveplayerid][pAccusing]);
SendClientMessage(playerid, COLOR_GRAD4,string);
format(string, sizeof(string), "Acusado : %s", PlayerCrime[giveplayerid][pBplayer]);
SendClientMessage(playerid, COLOR_GRAD5,string);
SendClientMessage(playerid, TEAM_BLUE_COLOR,"_______________________________________");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " O jogador estб offline !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб em um Carro de Polнcia ou no Departamento.");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/minhaficha", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessage(playerid, TEAM_BLUE_COLOR,"______-=FICHA CRIMINAL * MINISTЙRIO DA DEFESA=-_______");
format(string, sizeof(string), "Nome : %s", sendername);
SendClientMessage(playerid, COLOR_WHITE,string);
format(string, sizeof(string), "Crime : %s", PlayerCrime[playerid][pAccusedof]);
SendClientMessage(playerid, COLOR_GRAD2,string);
format(string, sizeof(string), "Vнtima : %s", PlayerCrime[playerid][pVictim]);
SendClientMessage(playerid, COLOR_GRAD3,string);
format(string, sizeof(string), "Relato : %s", PlayerCrime[playerid][pAccusing]);
SendClientMessage(playerid, COLOR_GRAD4,string);
format(string, sizeof(string), "Acusado : %s", PlayerCrime[playerid][pBplayer]);
SendClientMessage(playerid, COLOR_GRAD5,string);
SendClientMessage(playerid, TEAM_BLUE_COLOR,"_______________________________________");
return 1;
}