28.05.2010, 13:32
I use GTA RP mode and i make in MTA bases for org. ( mafia ) and when i try to add car for org ( vehicle, never mine ) and put OnPlayerState change this code
ITS WORK FINE but in GTA RP it had ownership and when i enter car ID >
it ask me for buy/sell so my question is HOW to add org. vehicles / cars ?
pawn Код:
if(newcar == CARID|| newcar == CAR ID)
{
if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10) { } // ORG ID
else
{
SendClientMessage(playerid,COLOR_GREY,"You are not in gang.");
RemovePlayerFromVehicle(playerid);
}
}
Код:
newcar == CARID