29.03.2009, 14:58
pawn Код:
//On top of the script
new PaintJob[MAX_PLAYERS];
//Back down
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/paint", true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new cartype = GetVehicleModel(vehicleid);
if(cartype == 562){ // Elegy
ChangeVehiclePaintjob(vehicleid, Paintjob[playerid]);
Paintjob[playerid] ++;
SendClientMessage(playerid,COLOR_BLUE,"[INFO] Elegy tuneado!");
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);}
return 1;}
return 0;
}