17.11.2016, 21:39
ok,now it works,but even if you press G you get knocked out.
how can i filter it to be just for drivers?
got this so far
how can i filter it to be just for drivers?
got this so far
PHP код:
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");
}
}