• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Duda]
#2
usa esto compa



new timeRobo[MAX_PLAYERS];



CMD:robar(playerid)

{

timeRobo[playerid] = SetTimerEx("Robo", 10000, false, "i", playerid);

LoopingAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 1, 1, 1, 1, 13000);

GameTextForPlayer(playerid, "Robando", 10000, 5);

return 1;

}



forward Robo(playerid);

public Robo(playerid)

{

ApplyAnimation(playerid, "CARRY", "crry_prtial", 1.0, 0, 0, 0, 0, 0);

RoboRandom(playerid);

return 1;

}



LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)

{

ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);

}



stock RoboRandom(playerid)

{

new robo = random(3);

switch(robo)

{

case 0:

{

GivePlayerMoney(playerid, 2000);

SendClientMessage(playerid, -1, "Has ganado {009B00}2000$");

}

case 1:

{

GivePlayerMoney(playerid, 6000);

SendClientMessage(playerid, -1, "Has ganado {009B00}6000$");

}

case 2:

{

GivePlayerMoney(playerid, 9000);

SendClientMessage(playerid, -1, "Has ganado {009B00}9000$");

}

}

return 1;

}
  Reply


Messages In This Thread
[Duda] - by Kaiser - 2021-02-06, 01:52 AM
RE: [Duda] - by Nikolay_Staggs - 2021-02-06, 05:45 PM
RE: [Duda] - by Botato - 2021-03-07, 06:54 AM
RE: [Duda] - by Kaiser - 2021-02-08, 12:46 AM

Forum Jump: