27.12.2012, 11:51
Hey i am using ravens roleplay and i want only taxi drivers to drive the taxi's can someone help please
i will rep if someone helps thanks so much
i will rep if someone helps thanks so much
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger)
{
if(IsTaxiVehicle(vehicleid) && PlayerInfo[playerid][pJob] != yourslotoftaxijobhere)
{
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You cannot enter this vehicle as you are not a taxi driver.");
}
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetPlayerSkin(playerid)==/*the id of the skin*/ && GetVehicleModel(vehicleid) == 420)
{
//do what ever
}else{
ClearAnimations(playerid);
SendClientMessage(playerid,-1,"You need to be a taxi driver");
}
return 1;
}
will rep if someone helps |