21.03.2010, 11:29
Quote:
if(IsAnOwnableCar(newcar)) { if(CarInfo[newcar][cOwned]==0) { TogglePlayerControllable(playerid, 0); format(string,sizeof(string),"~w~Vehicle: %s~n~Price: ~g~%d~n~~w~/buycar to buy this vehicle~n~~r~/exit ~w~to exit this vehicle",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]); GameTextForPlayer(playerid,string,5000,5); } if(CarInfo[newcar][cOwned]==1) { format(string,sizeof(string),"Vehicle by %s",CarInfo[newcar][cOwner]); SendClientMessage(playerid, COLOR_WHITE, string); |
Quote:
public IsAnOwnableCar(vehicleid) { if(vehicleid >= 184 && vehicleid <= 387) { return 1; } return 0; } |