09.02.2018, 10:20
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(PlayerData[playerid][SpectateP] != -1) PlayerSpectateVehicle(PlayerData[playerid][SpectateP], vehicleid);
if(StaticVeh[vehicleid][vSpecial] == 15) SendClientMessage(playerid, RED, "WARNING: This faggio will respawn in 10 seconds if you leave it.");
if(IsWorking[playerid] == 1 && VJob[playerid] != -1 ) KillTimer(TimerStopJob);
if(PlayerData[playerid][CarLic] == 0 && StaticVeh[vehicleid][vSpecial] == 0)
if(ispassenger ==0)
{
if(!(IsAPlane(vehicleid) || IsABoat(vehicleid) || IsABike(vehicleid)))
{
if(PlayerData[playerid][CarLic] == 0 && StaticVeh[vehicleid][vSpecial] == 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+3);
SendClientMessage(playerid, COLOR_WHITE, "You don't have a driving license");
}
if(PlayerData[playerid][CarLic] == 0 && StaticVeh[vehicleid][vSpecial] == 15)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+3);
SendClientMessage(playerid, COLOR_WHITE, "You don't have a driving license");
}
}
}