- 0
Ajutor GetPlayerName
-
Similar Content
-
- 2 replies
- 151 views
-
Ajutor
By O dai cu So2,
- 1 reply
- 329 views
-
- 3 replies
- 245 views
-
- 0 replies
- 131 views
-
- 4 replies
- 191 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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]
Link to comment
Share on other sites
13 answers to this question
Recommended Posts