14.02.2011, 19:13
Hey all any say me how to add commands /v -for cars,bike... and how to create unlimited nitro PLS HELP
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(v, 1, cmdtext);
return 0;
}
dcmd_v(playerid, params[]) //Tested and working
{
new spawnvehicleid;
if(sscanf(params, "d", spawnvehicleid)) return SendClientMessage(playerid, COLOR_USAGE, "USAGE: /v (vehicle id)");
else if(spawnvehicleid > 399 && spawnvehicleid < 612)
{
SendClientMessage(playerid, COLOR_ADMIN, "Vehicle Spawned!");
CreateVehicleEx(playerid,spawnvehicleid, X,Y,Z+1, Angle, -1, -1, -1);
}
else SendClientMessage(playerid, COLOR_USAGE,"USAGE: Minimum 400 || Maximum 611");
return 1;
}