Szerintem mûködik, de nem vagyok benne biztos.
#include a_samp
#include zcmd
CMD:figy1(playerid, params[])
{
new nev[MAX_PLAYER_NAME], string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, \"Nem vagy admin!\");
if(isnull(params)) return SendClientMessage(playerid, -1, \"Használat: /figy1 [id]\");
GetPlayerName(playerid, nev, sizeof(nev));
format(string, sizeof(string), \" ** Rendõr, %s felszólít, hogy állj félre az út szélére! **\" nev);
SendClientMessage(strval(params), -1, string);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid)
{
new model = GetVehicleModel(vehicleid);
if(model == 523 || model == 427 || model == 490 || model == 528 || model == 596 || model == 598 || model == 597 || model == 599 || model == 432 || model == 601 || model == 520 || model == 425 || model == 548 || model == 497 || model == 447)
{
if(!IsPlayerAdmin(playerid)) return ClearAnimations(playerid), SendClientMessage(playerid, -1, \"Nem vagy rendõr!\");
}
return 1;
}