15.03.2013, 18:59
pawn Код:
CMD:vpaint(playerid, params[])
{
if(PlayerInfo[playerid][pVip] >=1 )
{
new paintjob;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, "ERROR: You're not in a vehicle.");
if(sscanf(params, "i",paintjob)) return SendClientMessage(playerid,COLOR_WHITE, "USAGE: /vpaint [1-3]");
ChangeVehiclePaintjob(GetPlayerVehicleID(playerid), paintjob);
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}