19.08.2012, 12:14
pawn Код:
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;
}