CMD:vcall(playerid,params[]) {
#pragma unused params
CallVehicleToPlayer(playerid);
CallVehicle2ToPlayer(playerid);
CallVehicle3ToPlayer(playerid);
CallVehicle4ToPlayer(playerid);
CallVehicle5ToPlayer(playerid);
CallVehicle6ToPlayer(playerid);
CallVehicle7ToPlayer(playerid);
CallVehicle8ToPlayer(playerid);
CallVehicle9ToPlayer(playerid);
CallVehicle10ToPlayer(playerid);
CallVehicle11ToPlayer(playerid);
CallVehicle12ToPlayer(playerid);
CallVehicle13ToPlayer(playerid);
CallVehicle14ToPlayer(playerid);
CallVehicle15ToPlayer(playerid);
return 1;
CMD:vcall(playerid,params[]) {
#pragma unused params
CallVehicleToPlayer(playerid);
CallVehicle2ToPlayer(playerid);
CallVehicle3ToPlayer(playerid);
CallVehicle4ToPlayer(playerid);
CallVehicle5ToPlayer(playerid);
CallVehicle6ToPlayer(playerid);
CallVehicle7ToPlayer(playerid);
CallVehicle8ToPlayer(playerid);
CallVehicle9ToPlayer(playerid);
CallVehicle10ToPlayer(playerid);
CallVehicle11ToPlayer(playerid);
CallVehicle12ToPlayer(playerid);
CallVehicle13ToPlayer(playerid);
CallVehicle14ToPlayer(playerid);
CallVehicle15ToPlayer(playerid);
return 1;
:facepalm:
CalLVehicleToPlayer function, not vcall command function |
CMD:vcall(playerid,params[]) {
#pragma unused params
CallVehicleToPlayer(playerid);
CallVehicle2ToPlayer(playerid);
CallVehicle3ToPlayer(playerid);
CallVehicle4ToPlayer(playerid);
CallVehicle5ToPlayer(playerid);
CallVehicle6ToPlayer(playerid);
CallVehicle7ToPlayer(playerid);
CallVehicle8ToPlayer(playerid);
CallVehicle9ToPlayer(playerid);
CallVehicle10ToPlayer(playerid);
CallVehicle11ToPlayer(playerid);
CallVehicle12ToPlayer(playerid);
CallVehicle13ToPlayer(playerid);
CallVehicle14ToPlayer(playerid);
CallVehicle15ToPlayer(playerid);
return 1;
CMD:vcall(playerid, params[])
{
new vehicle;
if(sscanf(params, "u", vehicle)) return SendClientMessage(playerid, COLOR_RED, "/vcall (1-15)");
if(vehicle < 1 && vehicle > 15) return SendClientMessage(playerid, COLOR_RED, "/vcall (1-15)");
{
if(vehicle == 1) // first vehicle
{
CallVehicleToPlayer(playerid);
return 1;
}
else if(vehicle == 2) //second vehicle etc.
{
CallVehicle2ToPlayer(playerid);
return 1;
}
}
return 1;
}