- 0
Ajutor GetPlayerName
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
mApY.
Nici cum nu reusesc sa fac sa ii ia numele jucatorului ...
De ex. eu dau /carinfo si am numele bogdan sa apara bogdan's vehicle
Comanda
[pawn] if(strcmp(cmd, "/carinfo", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new str[128];
new name[MAX_PLAYER_NAME+1], str[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
new coordsstring[256];
new carkey = PlayerInfo[playerid][pCurentKey];
new stext[20];
if(CarInfo[carkey][cLock] == 1) { stext = "Locked"; }
else if(CarInfo[carkey][cLock] == 0) { stext = "Unlocked"; }
if (PlayerInfo[playerid][pCurentKey] != -1)
{
SendClientMessage(playerid, COLOR_GREEN,"____________________________________________");
format(str, sizeof(str),"** %s's vehicle **", name);
format(string, sizeof(string), "Model:[%s] Standard Price:[%s] Color:[%d - %d] VehicleID:[%d] Plate:[%s]", CarInfo[carkey][cDescription], number_format(CarInfo[carkey][cValue]), CarInfo[carkey][cColorOne], CarInfo[carkey][cColorTwo], carkey,CarInfo[carkey][cLicense]);
SendClientMessage(playerid, COLOR_GRAD3,string);
format(string, sizeof(string), " Times Destroyed:[%d] Insurances:[%d] Insurance Price:[$%s] Locked:[%s]", CarInfo[carkey][cTD], CarInfo[carkey][cInsurance], number_format(CarInfo[carkey][cInsurancePrice]), stext);
SendClientMessage(playerid, COLOR_GRAD3,string);
SendClientMessage(playerid, COLOR_GREEN,"____________________________________________");
}
}
return 1;
}[/pawn]
13 answers to this question
Recommended Posts