15.03.2013, 18:48
So I'm attempting to make a command, that will change a player's paint job in a vehicle. The command is only for VIP's. I want it so the player needs to do /vpaint 1-3. in order to change his current paint job. How would I make it so if he did /vpaint 1, it would change the paint job to 1. Same with /vpaint 2 and 3.
Thank you.
Thank you.
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]");
}
else return SendClientMessage(playerid,COLOR_GREY, ERROR);
return 1;
}