Help with small prob
#4

pawn Код:
if(strcmp(cmdtext,"/rcar",true) == 0)
    {
        new car = randomEx(400,611),vehicleid;
        new Float:x,Float:y,Float:z,Float:a;
        GetPlayerPos(playerid,x,y,z);
        GetPlayerFacingAngle(playerid,a);
        vehicleid = CreateVehicle(car,x,y,z,a,-1,-1,-1);
        PutPlayerInVehicle(playerid,vehicleid,0);
        return 1;
    }
And you will need:
pawn Код:
stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
//Credits: ******
Reply


Messages In This Thread
Help with small prob - by FireCat - 30.08.2010, 17:18
Re: Help with small prob - by CyNiC - 30.08.2010, 17:23
Re: Help with small prob - by FireCat - 30.08.2010, 17:27
Re: Help with small prob - by [XST]O_x - 30.08.2010, 17:32
Re: Help with small prob - by CyNiC - 30.08.2010, 17:37
Re: Help with small prob - by FireCat - 30.08.2010, 17:40

Forum Jump:


Users browsing this thread: 3 Guest(s)