Using ReturnVehicleModelID(id);
#1

Well , Basically - I was wondering how to add that function to my command.

Instead of using ID's - I'd like to use names too.

Here is the CMD :

PHP код:
    if(PlayerInfo[playerid][pAdmin] < 1337) return SCM(playerid"You cannot use this command.");
    new 
modelcolor1color2factionfamilyvipFloat:xFloat:yFloat:zFloat:astring[512];
    new 
idDBResult:dbResult[2], attemptsbool:found;
    
GetPlayerPos(playeridxyz); GetPlayerFacingAngle(playerida);
    if(
sscanf(params"dddddd"modelcolor1color2factionfamilyvip)) return SyntaxMessage(playerid"/permcar [model] [color 1] [color 2] [faction] [family] [VIP]");
    if(
model 400 || model 611) return SCM(playerid"Invalid model ID/Name.");
    if(
color1 || color1 255) return SCM(playerid"Invalid color ID.");
    if(
color2 || color2 255) return SCM(playerid"Invalid color ID."); 
Notice : That's not the full CMD - But it's the needed part.
Thank you.
Reply


Messages In This Thread
Using ReturnVehicleModelID(id); - by Black Axe - 04.07.2013, 11:55
Re: Using ReturnVehicleModelID(id); - by Misiur - 04.07.2013, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)