22.11.2008, 16:51
First add this command
And when you are in game,in the car that you added type /carid.You will see a number.
Then search for
And add the number next to "newcar == 94"
Ex when you type /carid.If you see "Your car id is: 123456"
Add this
if(newcar == 82 || newcar == 84 || newcar == 85 || newcar == 94 || newcar == 123456)
pawn Код:
if(strcmp(cmd, "/carid", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
new car = GetPlayerVehicleID(playerid);
format(string, sizeof(string), "Your car id is: %d",car);
SendClientMessage(playerid, COLOR_GREY, string);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You must be in a vehicle");
}
}
return 1;
}
Then search for
pawn Код:
if(newcar == 82 || newcar == 84 || newcar == 85 || newcar == 94)
{
if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10) { }
else
{
SendClientMessage(playerid,COLOR_GREY," You are not a Taxi Driver !");
RemovePlayerFromVehicle(playerid);
}
}
Ex when you type /carid.If you see "Your car id is: 123456"
Add this
if(newcar == 82 || newcar == 84 || newcar == 85 || newcar == 94 || newcar == 123456)
AND ASK THE GODFATHER QUESTIONS TO THE GODFATHER THREAD