11.01.2011, 08:21
Ok this code is for your question #3, to set plate to admin name:
NOTE: Untested
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new n[MAX_PLAYER_NAME], veh;
GetPlayerName(playerid, n, sizeof(n));
veh = GetPlayerVehicleID(playerid);
if(newstate == PLAYER_STATE_DRIVER)
{
if(playerdata[playerid][level] > 0)
{
SetVehicleNumberPlate(veh, n);
return 1;
}
}
return 1;
}