if(strcmp(cmd, "/documentos", true) == 0) {
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GREEN, "Use /documentos [id].");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
new string222[256];
format(string222, sizeof(string222), "» Documentos de: %s", aname);
SendClientMessage(plid, 0x4E9C9CAA, string222);
format(string, sizeof(string), "» Skin nъmero: %d", dini_Int(file, "Skin"));
SendClientMessage(plid, 0xFFFFFFAA, string);
if(dini_Int(file, "HabTerrestre") == 1){
SendClientMessage(plid, 0xFFFFFFAA, "» Habilitaзгo Terrestre: Sim");
}
if(dini_Int(file, "HabTerrestre") == 0){
SendClientMessage(plid, 0xFFFFFFAA, "» Habilitaзгo Terrestre: Nгo");
}
if(dini_Int(file, "HabNautica") == 1){
SendClientMessage(plid, 0xFFFFFFAA, "» Habilitacao Nбutica: Sim");
}
if(dini_Int(file, "HabNautica") == 0){
SendClientMessage(plid, 0xFFFFFFAA, "» Habilitaзгo Nбutica: Nгo");
}
if(dini_Int(file, "HabAerea") == 1){
SendClientMessage(plid, 0xFFFFFFAA, "» Habilitaзгo Aйrea: Sim");
}
if(dini_Int(file, "HabAerea") == 0){
SendClientMessage(plid, 0xFFFFFFAA, "» Habilitaзгo Aйrea: Nгo");
}
if(dini_Int(file, "Porte") == 1){
SendClientMessage(plid, 0xFFFFFFAA, "» Porte de Armas: Sim");
}
if(dini_Int(file, "Porte") == 0){
SendClientMessage(plid, 0xFFFFFFAA, "» Porte de Armas: Nгo");
}
format(string, sizeof(string), "(INFO) Documentos mostrados para %s.", pname);
SendClientMessage(playerid, 0x4E9C9CAA, string);
format(string, sizeof(string), "(INFO) %s lhe mostrou seus documentos!", aname);
SendClientMessage(plid, 0x4E9C9CAA, string);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido");
return 1;
}
}
if(!strcmp(cmd, "/documentos", true)) {
new tmp[128]; tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREEN, "Use /documentos [id].");
new plid = strval(tmp);
if(!IsPlayerConnected(plid)) return SendClientMessage(playerid, Vermelho, "(ERRO) ID invбlido");
new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
new aname[MAX_PLAYER_NAME]; GetPlayerName(plid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
new string_[50]; format(string_, sizeof(string_), "» Documentos de: %s", aname); SendClientMessage(playerid, 0x4E9C9CAA, string_);
format(string, sizeof(string), "» Skin nъmero: %d", dini_Int(file, "Skin")); SendClientMessage(playerid, 0xFFFFFFAA, string);
if(dini_Int(file, "HabTerrestre") == 1) SendClientMessage(playerid, 0xFFFFFFAA, "» Habilitaзгo Terrestre: Sim");
if(dini_Int(file, "HabTerrestre") == 0) SendClientMessage(playerid, 0xFFFFFFAA, "» Habilitaзгo Terrestre: Nгo");
if(dini_Int(file, "HabNautica") == 1) SendClientMessage(playerid, 0xFFFFFFAA, "» Habilitacao Nбutica: Sim");
if(dini_Int(file, "HabNautica") == 0) SendClientMessage(playerid, 0xFFFFFFAA, "» Habilitaзгo Nбutica: Nгo");
if(dini_Int(file, "HabAerea") == 1) SendClientMessage(playerid, 0xFFFFFFAA, "» Habilitaзгo Aйrea: Sim");
if(dini_Int(file, "HabAerea") == 0) SendClientMessage(playerid, 0xFFFFFFAA, "» Habilitaзгo Aйrea: Nгo");
if(dini_Int(file, "Porte") == 1) SendClientMessage(playerid, 0xFFFFFFAA, "» Porte de Armas: Sim");
if(dini_Int(file, "Porte") == 0) SendClientMessage(playerid, 0xFFFFFFAA, "» Porte de Armas: Nгo");
format(string, sizeof(string), "(INFO) Documentos mostrados para %s.", pname); SendClientMessage(plid, 0x4E9C9CAA, string);
format(string, sizeof(string), "(INFO) %s lhe mostrou seus documentos!", aname); SendClientMessage(playerid, 0x4E9C9CAA, string);
return 1;
}
Eu sempre quis saber o que esse tal de plid, onde posso encontrar matйrias sobre essa explicaзгo?
obrigado pela sua explicaзгo, te darei rep ao atingir os poster necessarios. |