CNN Problem
#1

i want to make faction named CNN, but i dont know how to put cmds: /news and /live

plz help me...
and if you now, how to put vehicle in script using dcmd!

and third question..
if i park some car in game, can I through scriptfiles change car for example, if is there parked infernus to put through scriptfiles that infernus become bullet
Reply
#2

for the dcmd question:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(vehicle, 7, cmdtext);
  return 0;
}

dcmd_vehicle(playerid, params[])
{
  if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/vehicle [id]");
  new v = strval(params);
  if(v < 400 || v > 611) return SendClientMessage(playerid, COLOR, "Invalid vehicleid");
  new Float:x, Float:y, Float:z, Float:az;
  GetPlayerPos(playerid, x, y, z);
  GetPlayerFacingAngle(playerid, az);
  x += (5.00 * floatsin(-a, degrees));
  y += (5.00* floatcos(-a, degrees));
  CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
  return 1;
}
(hope that works, just wrote it up)

for the rest: I don't really get what you mean
Reply
#3

any how with this command make more than one car?
Reply
#4

pawn Код:
dcmd_vehicle(playerid, params[])
{
  if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/vehicle [id]");
  new v = strval(params);
  if(v < 400 || v > 611) return SendClientMessage(playerid, COLOR, "Invalid vehicleid");
  new Float:x, Float:y, Float:z, Float:az;
  GetPlayerPos(playerid, x, y, z);
  GetPlayerFacingAngle(playerid, az);
  x += (5.00 * floatsin(-a, degrees));
  y += (5.00* floatcos(-a, degrees));
  CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
CreateVehicle(v, x, y, z, a-90, -1, -1, -1);
  return 1;
}
Reply
#5

but i have under OnPlayerCommandText over 15 commands, how to put these all commands in dcmd

all commands for administrators need to put like dcmd commands, how do this...

is better to clear all admin commands and put FS of admin panel ??
Reply
#6

any help??

plzzzz, answer me on this:

Quote:

but i have under OnPlayerCommandText over 15 commands, how to put these all commands in dcmd

all commands for administrators need to put like dcmd commands, how do this...

is better to clear all admin commands and put FS of admin panel ??

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)