28.03.2009, 00:14
Quote:
Originally Posted by zanakinz
God have you ever tried Wiki...
Click here but if your to lazy you can just look right here: Код:
//In command form if(strcmp(cmd, "/paint", true) == 0) { if(IsPlayerConnected(playerid)) { ChangeVehicleColor(vehicleid, MAINCOLORID, SUBCOLORID); return 1; } //or maybe its this way if you get errors if(strcmp(cmd, "/paint", true) == 0) { if(IsPlayerConnected(playerid)) { ChangeVehicleColor(vehicleid, MAINCOLORID, SUBCOLORID); } return 1; } Код:
//Define this by the others new Veh1; //Under OnGameModeInit veh = GetPlayerVehicleID(playerid); //Command Form if(strcmp(cmd, "/paintjob", true) == 0) { if(IsPlayerConnected(playerid)) { ChangeVehiclePaintjob(Veh1,1 - 5); return 1; } |