if(strcmp(cmd, \"/forgalmi\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, \"Nem vagy bejelentkezve!\");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /forgalmi [JátékosID/NévRészlet]\");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
new kocsiid;
kocsiid = PlayerInfo[playerid][pPcarkey];
new kocsiid2;
kocsiid2 = PlayerInfo[playerid][pPcarkey2];
new dialog[256];
if(PlayerInfo[playerid][pPcarkey] == 999)
{
format(dialog,sizeof(dialog),\"______________________________________________\\n\\nNév: %s\\n\\nNincs jámûve!\\n\\n______________________________________________\",sendername);
}
else if(PlayerInfo[playerid][pPcarkey] < 999)
{
format(dialog,sizeof(dialog),\"______________________________________________\\n\\nNév: %s\\n\\nKocsi 1 Rendszám: BB-%s\\n\\nKocsi 2 Rendszám: BB-%s\\n\\n______________________________________________\",sendername,CarInfo[kocsiid][cDescription],kocsiid, kocsiid2);
}
ShowPlayerDialog(giveplayerid,01101,DIALOG_STYLE_MSGBOX,\"Forgalmi Engedély\",dialog,\"-\",\"-\");
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), \"%s megmutatta a forgalmi engedélyét.\",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), \"Megmutattad %s a forgalmi engedélyed.\",rag(giveplayer,2));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(stringx, sizeof(stringx), \"* %s megmutatta a forgalmi engedélyét %s\",sendername,rag(giveplayer,2));
ProxDetector(30.0, playerid, stringx, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerChatBubble(playerid, \"megmutatta a forgalmi engedélyét valakinek\", COLOR_PURPLE, 80.0, 10000);
new nev[32];
GetPlayerName(playerid, nev, sizeof(nev));
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d] %s megmutatta a forgalmi engedélyét %s.\",y,m,d,h,mi,s,nev,rag(giveplayer,2));
LoOoG(stringx);
return 1;
}
else SendClientMessage(playerid, COLOR_GRAD2, \"A játékos nincs a közeledben!\");
}
}
}
return 1;
}
[gmod=Gentleman]Legközelebb CODE tagba tedd.[/gmod]