Author Topic: killtime command ayuda help  (Read 4980 times)

0 Members and 1 Guest are viewing this topic.

Offline A7Xsniper

  • Street Thug
  • *
  • Posts: 20
    • View Profile
killtime command ayuda help
« on: April 21, 2011, 08:45:54 pm »
hello, as I can put a command to give weapons to all
example: / c KillTimer m4 or rocket etc.


hola, como puedo poner un comando para dar armas a todos
ejemplo  /c killtime m4 o rocket etc.


 :P xD

Offline tato

  • Made Man
  • ***
  • Posts: 106
  • I bet u don't know me!
    • View Profile
    • EA Server
Re: killtime command ayuda help
« Reply #1 on: April 22, 2011, 05:47:07 am »
ok i will made that command ok (just ask me from msn )

ok voi hacer ese comando (solo preguntame por msn)

yazeen

  • Guest
Re: killtime command ayuda help
« Reply #2 on: April 22, 2011, 06:44:46 am »
xD Use Timerz and KillTimerz

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: killtime command ayuda help
« Reply #3 on: April 22, 2011, 08:34:09 am »
Code: [Select]
new timer; // Timer variable.
timer = SetTimer("Function", 1000, 1); // Repeat Function() every second
Code: [Select]
KillTimer(timer); // Stop running the timer

Is this what you're looking for?
Do not PM me for support.




Offline tato

  • Made Man
  • ***
  • Posts: 106
  • I bet u don't know me!
    • View Profile
    • EA Server
Re: killtime command ayuda help
« Reply #4 on: April 22, 2011, 11:09:39 pm »
Come on Guys he mean this
The command is for Gups :D

here finally i got the code

first add this command

Code: [Select]
else if (strcmp(cmd, "wepall", true) == 0) {
    tmp = strtok(cmdtext, idx);
       new szMsg[256];
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "Necesitas loguear primero");
else if(!IsPlayerCommandLevel(playerid,"setwep")) SendClientMessage(playerid, COLOR_RED, "No tienes acceso a ese comando!");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"[Syntax] - The correct use: /c wepall <weapon/id>.");
else {
format(szMsg,sizeof(szMsg),"Admin %s sent to all players a wepon: %s.",gPlayers[playerid],GetWeaponNameID(FindWepIDFromString(tmp)));
SendClientMessageToAll(COLOR_GREEN,szMsg);
WepAll(tmp);
}
return 1;
}
next step add this public    
Code: [Select]
public GetWeaponNameID(wep)
{
new w[256];
if (wep == 1) w = "Brass Knuckle";
    if (wep == 2) w = "Screw Driver";
if (wep == 3) w = "Golf Club";
if (wep == 4) w = "Night Stick";
if (wep == 5) w = "Knife";
if (wep == 6) w = "Baseball Bat";
    if (wep == 7) w = "Hammer";
if (wep == 8) w = "Cleaver";
if (wep == 9) w = "Machete";
if (wep == 10) w = "Katana";
if (wep == 11) w = "Chainsaw";
    if (wep == 12) w = "Grenade";
if (wep == 13) w = "Remote Grenade";
if (wep == 14) w = "TearGas";
if (wep == 15) w = "Molotov";
if (wep == 16) w = "Missile";
    if (wep == 17) w = "Colt45";
if (wep == 18) w = "Python";
if (wep == 19) w = "Shotgun";
if (wep == 20) w = "Spaz";
if (wep == 21) w = "Stubby";
    if (wep == 22) w = "Tec9";
if (wep == 23) w = "Uzi";
if (wep == 24) w = "Ingrams";
if (wep == 25) w = "MP5";
if (wep == 26) w = "M4";
    if (wep == 27) w = "Ruger";
if (wep == 28) w = "Sniper Rifle";
if (wep == 29) w = "Laser Scope";
if (wep == 30) w = "Rocket Launcher";
if (wep == 31) w = "Flame Thrower";
    if (wep == 32) w = "M60";
    if (wep == 33) w = "Minigun";
    if (wep == 35) w = "Heli-Cannon";
    if (wep == 39) w = "Vehicle";
    if (wep == 41) w = "Explosion";
    if (wep == 42) w = "Drive-By";
    if (wep == 43) w = "Drowned";
    if (wep == 60) w = "Heli-Blades";
return w;
}
next step add this stock
Code: [Select]
stock WepAll(weapon[])
{
new wep = FindWepIDFromString(weapon);
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) == 1) SetPlayerWeapon(i,wep,9999);
     }
}
Credits: Madara & Tato, Gups scripters
« Last Edit: April 24, 2011, 08:52:24 pm by tato »

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: killtime command ayuda help
« Reply #5 on: April 24, 2011, 04:21:15 pm »
Come on Guys he mean this
The command is for Gups :D

here finally i got the code

first add this command

Code: [Select]
else if (strcmp(cmd, "wepall", true) == 0) {
    tmp = strtok(cmdtext, idx);
       new szMsg[256];
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "Necesitas loguear primero");
else if(!IsPlayerCommandLevel(playerid,"setwep")) SendClientMessage(playerid, COLOR_RED, "No tienes acceso a ese comando!");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"[Syntax] - The correct use: /c wepall <weapon/id>.");
else {
format(szMsg,sizeof(szMsg),"Admin %s sent to all players a wepon: %s.",gPlayers[playerid],GetWeaponNameID(FindWepIDFromString(tmp)));
SendClientMessageToAll(COLOR_GREEN,szMsg);
WepAll(tmp);
}
return 1;
}
next step add this public    
Code: [Select]
public GetWeaponNameID(wep)
{
new w[256];
if (wep == 1) w = "Brass Knuckle";
    if (wep == 2) w = "Screw Driver";
if (wep == 3) w = "Golf Club";
if (wep == 4) w = "Night Stick";
if (wep == 5) w = "Knife";
if (wep == 6) w = "Baseball Bat";
    if (wep == 7) w = "Hammer";
if (wep == 8) w = "Cleaver";
if (wep == 9) w = "Machete";
if (wep == 10) w = "Katana";
if (wep == 11) w = "Chainsaw";
    if (wep == 12) w = "Grenade";
if (wep == 13) w = "Remote Grenade";
if (wep == 14) w = "TearGas";
if (wep == 15) w = "Molotov";
if (wep == 16) w = "Missile";
    if (wep == 17) w = "Colt45";
if (wep == 18) w = "Python";
if (wep == 19) w = "Shotgun";
if (wep == 20) w = "Spaz";
if (wep == 21) w = "Stubby";
    if (wep == 22) w = "Tec9";
if (wep == 23) w = "Uzi";
if (wep == 24) w = "Ingrams";
if (wep == 25) w = "MP5";
if (wep == 26) w = "M4";
    if (wep == 27) w = "Ruger";
if (wep == 28) w = "Sniper Rifle";
if (wep == 29) w = "Laser Scope";
if (wep == 30) w = "Rocket Launcher";
if (wep == 31) w = "Flame Thrower";
    if (wep == 32) w = "M60";
    if (wep == 33) w = "Minigun";
    if (wep == 35) w = "Heli-Cannon";
    if (wep == 39) w = "Vehicle";
    if (wep == 41) w = "Explosion";
    if (wep == 42) w = "Drive-By";
    if (wep == 43) w = "Drowned";
    if (wep == 60) w = "Heli-Blades";
return w;
}
next step add this stock
Code: [Select]
stock WepAll(weapon[])
{
new wep = FindWepIDFromString(weapon);
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) == 1) SetPlayerWeapon(i,wep,9999);
     }
}
Credits: Madara & Tato
FAIL! if he isnt using gups he dont got WEPALL and credits to madara not you and to gups scripters
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline tato

  • Made Man
  • ***
  • Posts: 106
  • I bet u don't know me!
    • View Profile
    • EA Server
Re: killtime command ayuda help
« Reply #6 on: April 24, 2011, 08:51:06 pm »
Come on Guys he mean this
The command is for Gups :D

here finally i got the code

first add this command

Code: [Select]
else if (strcmp(cmd, "wepall", true) == 0) {
     tmp = strtok(cmdtext, idx);
       new szMsg[256];
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "Necesitas loguear primero");
else if(!IsPlayerCommandLevel(playerid,"setwep")) SendClientMessage(playerid, COLOR_RED, "No tienes acceso a ese comando!");
else if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"[Syntax] - The correct use: /c wepall <weapon/id>.");
else {
format(szMsg,sizeof(szMsg),"Admin %s sent to all players a wepon: %s.",gPlayers[playerid],GetWeaponNameID(FindWepIDFromString(tmp)));
SendClientMessageToAll(COLOR_GREEN,szMsg);
WepAll(tmp);
}
return 1;
}
next step add this public     
Code: [Select]
public GetWeaponNameID(wep)
{
new w[256];
if (wep == 1) w = "Brass Knuckle";
    if (wep == 2) w = "Screw Driver";
if (wep == 3) w = "Golf Club";
if (wep == 4) w = "Night Stick";
if (wep == 5) w = "Knife";
if (wep == 6) w = "Baseball Bat";
    if (wep == 7) w = "Hammer";
if (wep == 8) w = "Cleaver";
if (wep == 9) w = "Machete";
if (wep == 10) w = "Katana";
if (wep == 11) w = "Chainsaw";
    if (wep == 12) w = "Grenade";
if (wep == 13) w = "Remote Grenade";
if (wep == 14) w = "TearGas";
if (wep == 15) w = "Molotov";
if (wep == 16) w = "Missile";
    if (wep == 17) w = "Colt45";
if (wep == 18) w = "Python";
if (wep == 19) w = "Shotgun";
if (wep == 20) w = "Spaz";
if (wep == 21) w = "Stubby";
    if (wep == 22) w = "Tec9";
if (wep == 23) w = "Uzi";
if (wep == 24) w = "Ingrams";
if (wep == 25) w = "MP5";
if (wep == 26) w = "M4";
    if (wep == 27) w = "Ruger";
if (wep == 28) w = "Sniper Rifle";
if (wep == 29) w = "Laser Scope";
if (wep == 30) w = "Rocket Launcher";
if (wep == 31) w = "Flame Thrower";
    if (wep == 32) w = "M60";
    if (wep == 33) w = "Minigun";
    if (wep == 35) w = "Heli-Cannon";
    if (wep == 39) w = "Vehicle";
    if (wep == 41) w = "Explosion";
    if (wep == 42) w = "Drive-By";
    if (wep == 43) w = "Drowned";
    if (wep == 60) w = "Heli-Blades";
return w;
}
next step add this stock
Code: [Select]
stock WepAll(weapon[])
{
new wep = FindWepIDFromString(weapon);
    for(new i = 0; i <= MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i) == 1) SetPlayerWeapon(i,wep,9999);
     }
}
Credits: Madara & Tato
FAIL! if he isnt using gups he dont got WEPALL and credits to madara not you and to gups scripters
you are the one who fail cuz 1st he is using gups 2cond i help to make that command and madara helped me too and i forgot gups scripters  :P

Offline AcTiOnLiFe

  • Street Thug
  • *
  • Posts: 8
  • |-|ActionLife|-|
    • View Profile
Re: killtime command ayuda help
« Reply #7 on: April 25, 2011, 04:17:05 pm »
ho... thanks tato :P
« Last Edit: April 26, 2011, 12:39:51 am by maxorator »

Offline tato

  • Made Man
  • ***
  • Posts: 106
  • I bet u don't know me!
    • View Profile
    • EA Server
Re: killtime command ayuda help
« Reply #8 on: April 26, 2011, 04:34:46 am »