12.06.2012, 20:09
Quote:
pawn Код:
|
pawn Код:
CMD:showlicenses(playerid, params[])
{
new
targetid,
string[128],
name[MAX_PLAYER_NAME]
;
if(sscanf(params, "u", targetid))
{
return SendClientMessage(playerid, -1, "USAGE: /showlicenses [playerid/PartOfName]");
}
if(targetid == INVALID_PLAYER_ID)
{
return SendClientMessage(playerid, COLOR_GREY, "Player is not connected.");
}
GetPlayerName(playerid, name, 24);
format(string, 128, "|_________________%s's Licenses__________________|", name);
SendClientMessage(targetid, COLOR_GREY, string);
if(playerVariables[playerid][pCarLic] == 0)
{
SendClientMessage(targetid,COLOR_GREY, "Driver License: No");
}
else
{
SendClientMessage(targetid,COLOR_GREY, "Driver License: Yes");
}
if(playerVariables[playerid][pPassport] == 0)
{
SendClientMessage(targetid,COLOR_GREY, "Passport: No");
}
else
{
SendClientMessage(targetid,COLOR_GREY, "Passport: Yes");
}
return 1;
}