SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 21/08/2011, 07:11 PM   #1
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,176
Reputation: 685
Default Offering stat refunds?

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...

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
	{
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid, 99999999);
		SetPlayerScore(playerid, 50);
		return 1;
	}
	return 0;
}
RealCop228 is offline   Reply With Quote
Old 21/08/2011, 07:22 PM   #2
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,176
Reputation: 685
Default Re: Offering stat refunds?

Quote:
Originally Posted by Las Venturas CNR View Post
Shouldn't

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

be

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

Lol...
It is...

I clearly don't do a lot with strcmp commands.
RealCop228 is offline   Reply With Quote
Old 21/08/2011, 07:27 PM   #3
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,255
Reputation: 400
Default Re: Offering stat refunds?

Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
    {
        BanEx(playerid, "We don't offer refunds, bitch.");
        return 1;
    }
    return 0;
}
__________________
Kar is offline   Reply With Quote
Old 21/08/2011, 07:30 PM   #4
Corello2010
Big Clucker
 
Corello2010's Avatar
 
Join Date: May 2011
Posts: 109
Reputation: 20
Default Re: Offering stat refunds?

Code:
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;
}
__________________







Corello2010 is offline   Reply With Quote
Old 21/08/2011, 07:39 PM   #5
rbN.
Banned
 
Join Date: Jan 2010
Location: fissa
Posts: 2,197
Reputation: 289
Default Re: Offering stat refunds?

No guys, you all do it the wrong way.. This is the good way:
Code:
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;
}
rbN. is offline   Reply With Quote
Old 21/08/2011, 07:45 PM   #6
RealCop228
Godfather
 
Join Date: Feb 2010
Location: Springboro, OH
Posts: 8,176
Reputation: 685
Default Re: Offering stat refunds?

I like the ideas guys.

@ RobinOwnz: Wouldn't that just crash the player? What's the fun in that? lol
RealCop228 is offline   Reply With Quote
Old 21/08/2011, 07:47 PM   #7
Toni
High-roller
 
Toni's Avatar
 
Join Date: Aug 2009
Location: United States
Posts: 1,514
Reputation: 154
Default Re: Offering stat refunds?

Quote:
Originally Posted by RobinOwnz View Post
No guys, you all do it the wrong way.. This is the good way:
Code:
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.
__________________
Toni is offline   Reply With Quote
Old 21/08/2011, 07:55 PM   #8
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,255
Reputation: 400
Default Re: Offering stat refunds?

this one is epic,

Code:
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;
}
__________________
Kar is offline   Reply With Quote
Old 21/08/2011, 08:07 PM   #9
Kaperstone
High-roller
 
Kaperstone's Avatar
 
Join Date: May 2011
Location: 69
Posts: 3,054
Reputation: 532
Default Re: Offering stat refunds?

lol..
Code:
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
}
__________________
-=-rep4rape-=- Kaperstone.ru -=-rep4rape-=-

"High school is easy. It's like riding a bike and the bike is on fire and the ground is on fire and everything's on fire because you're in hell"
Kaperstone is offline   Reply With Quote
Old 21/08/2011, 08:15 PM   #10
Venice
Banned
 
Join Date: Nov 2010
Location: Tamilnadu,India
Posts: 959
Reputation: 50
Default Re: Offering stat refunds?

Quote:
Originally Posted by xkirill View Post
lol..
Code:
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 ?
Venice is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.