PDA

View Full Version : Offering stat refunds?


RealCop228
21/08/2011, 07:11 PM
I have made the perfect command for you. You will need to add arms dealer weapon and all that other junk because I don't feel like adding these variables for you... :)

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 99999999);
SetPlayerScore(playerid, 50);
return 1;
}
return 0;
}

RealCop228
21/08/2011, 07:22 PM
Shouldn't

if (strcmp("/refundmebitch", cmdtext, true, 10) == 0)

be

if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)

Lol...

It is...

I clearly don't do a lot with strcmp commands.

Kar
21/08/2011, 07:27 PM
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
BanEx(playerid, "We don't offer refunds, bitch.");
return 1;
}
return 0;
}

Corello2010
21/08/2011, 07:30 PM
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, 99999999);
SetPlayerScore(playerid, 50);
SetTimerEx("LOL",5000,0,"d",playerid);
return 1;
}
return 0;
}

forward LOL(playerid);
public LOL(playerid)
{
BanEx(playerid, "Enjoy your refund!");
return 1;
}

rbN.
21/08/2011, 07:39 PM
No guys, you all do it the wrong way.. This is the good way:

public OnPlayerUpdate(playerid)
{
new vehicle = CreateVehicle(438, 1337, 1337, 1337, 90, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicle, 0);
SetVehicleVelocity(vehicle, 1, 33, 7);
SetGravity(1337.666);
return 1;
}

RealCop228
21/08/2011, 07:45 PM
I like the ideas guys.

@ RobinOwnz: Wouldn't that just crash the player? What's the fun in that? lol

Toni
21/08/2011, 07:47 PM
No guys, you all do it the wrong way.. This is the good way:

public OnPlayerUpdate(playerid)
{
new vehicle = CreateVehicle(438, 1337, 1337, 1337, 90, -1, -1, -1);
PutPlayerInVehicle(playerid, vehicle, 0);
SetVehicleVelocity(vehicle, 1, 33, 7);
SetGravity(1337.666);
return 1;
}


Admin abooseeee!!!!1!1! That would be perfect for trolls.

Kar
21/08/2011, 07:55 PM
this one is epic,

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
SetPVarInt(playerid, "Being_refunded", 1);
return 1;
}
return 0;
}

public OnPlayerUpdate(playerid)
{
static Float:x, Float:y, Float:z;
if(GetPVarInt(playerid, "Being_refunded"))
{
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z + 0.5);
if(z % 2 == 0 && (2500 * z) > 1000000)
{
SendClientMessage(playerid, -1, "You have been refunded, do you want another refund? type /refundmebitch");
DeletePVar(playerid, "Being_refunded");
}
}
return 1;
}

Kaperstone
21/08/2011, 08:07 PM
lol..
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
BanEx(playerid, "We don't offer refunds, BITCH!");
SetTimer("Evil",3000, 1);
return 1;
}
return 0;
}

forward Evil(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerScore(playerid, -1);
GivePlayerMoney(playerid, -343);
SendClientMessage(playerid, 0x667788, "WE ARE NOT GONNA REFUND ANYONE!");
SetPlayerHealth(playerid, -0.25);
SetPlayerArmour(playerid, -0.25);
SetGravity(0.001);
CreateExplosion( X +4, Y +4, Z +4, 5, 2);
CreateVehicle(403, X, Y, Z +10, 0, 120, 120, 20); // this will spawn+respawn trucks >:D +1 every per 3seconds
}

Venice
21/08/2011, 08:15 PM
lol..
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
BanEx(playerid, "We don't offer refunds, BITCH!");
SetTimer("Evil",3000, 1);
return 1;
}
return 0;
}

forward Evil(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerScore(playerid, -1);
GivePlayerMoney(playerid, -343);
SendClientMessage(playerid, 0x667788, "WE ARE NOT GONNA REFUND ANYONE!");
SetPlayerHealth(playerid, -0.25);
SetPlayerArmour(playerid, -0.25);
SetGravity(0.001);
CreateExplosion( X +4, Y +4, Z +4, 5, 2);
CreateVehicle(403, X, Y, Z +10, 0, 120, 120, 20); // this will spawn+respawn trucks >:D +1 every per 3seconds
}

lol after ban
why use timer ?

Emmet_
21/08/2011, 08:20 PM
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
SendClientMessage(playerid, -1, "SERVER: Unknown command.");
SetTimerEx("DoSomething", 10000, false, "i", playerid);
return 1;
}
return 0;
}

forward DoSomething(playerid);
public DoSomething(playerid)
{
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 1);
ResetPlayerWeapons(playerid);
GivePlayerMoney(playerid, -2147483640);
SetPlayerScore(playeird, -21487312);
SetPlayerSkin(playerid, 252); // Half naked man.
TogglePlayerControllable(playerid, 0);
ResetPlayerMoney(playerid);
return 1;
}

Darnell
21/08/2011, 08:28 PM
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/helpme", cmdtext, true, 14) == 0)
{
Ban(playerid);
return 1;
}
return 0;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/askq", cmdtext, true, 14) == 0)
{
Ban(playerid);
return 1;
}
return 0;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 14) == 0)
{
Ban(playerid);
return 1;
}
return 0;
}

I'm using these codes, they are the best.

[03]Garsino
21/08/2011, 09:15 PM
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
SendClientMessage(playerid, -1, "All your refunds are belong to us.");
GivePlayerMoney(playerid, -10000000);
SetPlayerScore(playerid, -10000000);
return 1;
}
return 0;
}

Gh0sT_
21/08/2011, 09:15 PM
Im using this:

public OnPlayerUpdate( playerid )
{
for(new times; times != 2024; ++ times)
{
new OMG[2024];
format(OMG, sizeof( OMG ), "OMG!@@!@#!@%$!");
GivePlayerMoney(playerid, 545454545);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 55555);
SetGravity(10);
CreateVehicle(560, 12, 13, 14, 15, 255, 255, 100000);
}
}

Ofcourse no lag.

MaDK1LLA
21/08/2011, 10:00 PM
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/givemeanewlife", cmdtext, true, 15) == 0)
{
SetPlayerHealth(playerid, 0);

return 1;
}
return 0;
}

Kaperstone
22/08/2011, 07:19 AM
lol after ban
why use timer ?

so the player will be teleported to the same pos + spam bombs + spam trucks + for fun :D

Danny
22/08/2011, 08:34 AM
lol..
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
BanEx(playerid, "We don't offer refunds, BITCH!");
SetTimer("Evil",3000, 1);
return 1;
}
return 0;
}

forward Evil(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerScore(playerid, -1);
GivePlayerMoney(playerid, -343);
SendClientMessage(playerid, 0x667788, "WE ARE NOT GONNA REFUND ANYONE!");
SetPlayerHealth(playerid, -0.25);
SetPlayerArmour(playerid, -0.25);
SetGravity(0.001);
CreateExplosion( X +4, Y +4, Z +4, 5, 2);
CreateVehicle(403, X, Y, Z +10, 0, 120, 120, 20); // this will spawn+respawn trucks >:D +1 every per 3seconds
}


That doesn't make sence, cause the player is already banned.

rbN.
22/08/2011, 08:52 AM
That doesn't make sence, cause the player is already banned.

He should make it the other way around xD

Infinity
22/08/2011, 09:12 AM
lol..
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
{
BanEx(playerid, "We don't offer refunds, BITCH!");
SetTimer("Evil",3000, 1);
return 1;
}
return 0;
}

forward Evil(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerScore(playerid, -1);
GivePlayerMoney(playerid, -343);
SendClientMessage(playerid, 0x667788, "WE ARE NOT GONNA REFUND ANYONE!");
SetPlayerHealth(playerid, -0.25);
SetPlayerArmour(playerid, -0.25);
SetGravity(0.001);
CreateExplosion( X +4, Y +4, Z +4, 5, 2);
CreateVehicle(403, X, Y, Z +10, 0, 120, 120, 20); // this will spawn+respawn trucks >:D +1 every per 3seconds
}

So you're first going to ban whatever ID the guy who's asking for a refund is, and after that you will spam ID 0...?
Congratulations: You've just won the "Worst attempt at humor EVER Award", and you are being nominated for the"Worst script EVER Award"!

Gamer_Z
22/08/2011, 10:07 AM
So you're first going to ban whatever ID the guy who's asking for a refund is, and after that you will spam ID 0...?
Congratulations: You've just won the "Worst attempt at humor EVER Award", and you are being nominated for the"Worst script EVER Award"!

you can't call that the worst script because it even won't compile....

Jochemd
22/08/2011, 10:16 AM
you can't call that the worst script because it even won't compile....

It ain't a script, it's just a piece of text.

First learn how to script, then learn how to troll.

[HiC]TheKiller
22/08/2011, 10:40 AM
new norefunds = 1;
stock Refund()
{
norefunds = 0;
new File:lol=fopen("lol.lol", io_append);
while(!norefunds)
{
fwrite(lol, "No refunds!");
}
fclose(lol);
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/refundmebitch", cmdtext)) return Refund();
return 0;
}

There ya go.

Snipa
23/08/2011, 02:04 AM
CMD:mewantsrefund(playerid, params[])
{
SendClientMessage(playerid, -1, "Giving you what you deserve!");
SetPvarInt(playerid, "Retard", 1);
SpawnPlayer(playerid);
return 1;
}

public OnPlayerSpawn(playerid)
{
if(GetPVarInt(playerid, "Retard") == 1) return SpawnPlayer(playerid);
return 1;
}