/veh, Spawn Veh cmd
#5

no, right after the if statement

pawn Код:
if(!strcmp(cmd,"/veh",true))
    {
        if(IsValidvehicleModel(model)) return model>=400&&model<611;
        cmd=strtok(cmdtext,idx);
        if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /veh [vehicleid] [color 1] [color 2]");
        new car=strval(cmd);
        if(!IsValidvehicleModel(strval(cmd))) return SendClientMessage(playerid,COLOR_GREY,"Invalid vehicle ID.");
        cmd=strtok(cmdtext,idx);
        if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /veh [vehicleid] [color 1] [color 2]");
        new color1=strval(cmd);
        cmd=strtok(cmdtext,idx);
        if(!strlen(cmd)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /veh [vehicleid] [color 1] [color 2]");
        new color2=strval(cmd);
        GetPlayerPos(playerid,x,y,z);
        return CreateVehicle(car,x,y,z,0.0,color1, color2,-1);
    }
Reply


Messages In This Thread
/veh, Spawn Veh cmd - by Taz86 - 14.04.2009, 11:47
Re: /veh, Spawn Veh cmd - by MenaceX^ - 14.04.2009, 11:49
Re: /veh, Spawn Veh cmd - by Taz86 - 14.04.2009, 11:53
Re: /veh, Spawn Veh cmd - by MenaceX^ - 14.04.2009, 13:19
Re: /veh, Spawn Veh cmd - by LarzI - 14.04.2009, 15:28
Re: /veh, Spawn Veh cmd - by Taz86 - 14.04.2009, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)