SSCANF
#6

pawn Код:
CMD:vspawn(playerid,params[])
{
    new
        Float:x,Float:y,Float:z,Float:a,vehid,vehicle;

    if(sscanf(params,"d",vehid)) return SendClientMessage(playerid,COLOR_WHITE,"** Format ** /vspawn [vehid]");
    if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,COLOR_WHITE,"Vehicle ID's range from 400-611.");

        GetPlayerFacingAngle(playerid,a);
        GetPlayerPos(playerid,x,y,z);
 
        vehicle = CreateVehicle(vehid,x,y,z,a,-1,-1,5000);
        PutPlayerInVehicle(playerid,vehicle,0);

    return 1;
}
Reply


Messages In This Thread
SSCANF - by Azzeto - 09.12.2011, 16:40
Re: SSCANF - by T0pAz - 09.12.2011, 16:51
Re: SSCANF - by Azzeto - 09.12.2011, 16:55
Re: SSCANF - by T0pAz - 09.12.2011, 17:02
Re: SSCANF - by Azzeto - 09.12.2011, 17:03
Re: SSCANF - by Jakku - 09.12.2011, 17:06
Re: SSCANF - by Azzeto - 09.12.2011, 17:08
Re: SSCANF - by Jakku - 09.12.2011, 17:10
Re: SSCANF - by Azzeto - 09.12.2011, 17:11
Re: SSCANF - by Jakku - 09.12.2011, 17:15

Forum Jump:


Users browsing this thread: 1 Guest(s)