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,269
Reputation: 670
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...

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
    {
        ResetPlayerMoney(playerid);
        GivePlayerMoney(playerid, 99999999);
        SetPlayerScore(playerid, 50);
        return 1;
    }
    return 0;
}
__________________
Putting [URGENT] in the thread title stops me from opening the thread. Nobody else's problem on this forum is more important that another person's. Try not to be self-centered!
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,269
Reputation: 670
Default Re: Offering stat refunds?

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

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

be

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

Lol...
It is...

I clearly don't do a lot with strcmp commands.
__________________
Putting [URGENT] in the thread title stops me from opening the thread. Nobody else's problem on this forum is more important that another person's. Try not to be self-centered!
RealCop228 is offline   Reply With Quote
Old 21/08/2011, 07:27 PM   #3
Kar
High-roller
 
Join Date: May 2010
Location: Black Asylum
Posts: 2,877
Reputation: 280
Default Re: Offering stat refunds?

pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/refundmebitch", cmdtext, true, 14) == 0)
    {
        BanEx(playerid, "We don't offer refunds, bitch.");
        return 1;
    }
    return 0;
}
__________________

  • Twisted Metal's Website & Forums are up! http://tm.lvcnr.net

    Are you prepared to get your wish? Twisted Metal SA-MP is coming soon! Join the IRC Channel: #tm on irc.tl - @tmsamp_dev

server.lvcnr.net:7777 | samp://server.lvcnr.net:7777
www.lvcnr.net | @kcnrdev
Channel: #lvcnr on irc.tl
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?

pawn 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: 1,639
Reputation: 289
Default Re: Offering stat refunds?

No guys, you all do it the wrong way.. This is the good way:
pawn 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,269
Reputation: 670
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
__________________
Putting [URGENT] in the thread title stops me from opening the thread. Nobody else's problem on this forum is more important that another person's. Try not to be self-centered!
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,535
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:
pawn 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
 
Join Date: May 2010
Location: Black Asylum
Posts: 2,877
Reputation: 280
Default Re: Offering stat refunds?

this one is epic,

pawn 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;
}
__________________

  • Twisted Metal's Website & Forums are up! http://tm.lvcnr.net

    Are you prepared to get your wish? Twisted Metal SA-MP is coming soon! Join the IRC Channel: #tm on irc.tl - @tmsamp_dev

server.lvcnr.net:7777 | samp://server.lvcnr.net:7777
www.lvcnr.net | @kcnrdev
Channel: #lvcnr on irc.tl
Kar is offline   Reply With Quote
Old 21/08/2011, 08:07 PM   #9
xkirill
High-roller
 
xkirill's Avatar
 
Join Date: May 2011
Location: In a box infront of your house stealing your WiFi
Posts: 2,492
Reputation: 287
Default Re: Offering stat refunds?

lol..
pawn 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
}
__________________
KrustyGames.com
Project SAMP Fast & Furious - Coming soon
"by rating your skills, you're limiting yourself." - Kaperstone
xkirill is offline   Reply With Quote
Old 21/08/2011, 08:15 PM   #10
Venice
Gangsta
 
Venice's Avatar
 
Join Date: Nov 2010
Location: Tamilnadu,India
Posts: 935
Reputation: 50
Default Re: Offering stat refunds?

Quote:
Originally Posted by xkirill View Post
lol..
pawn 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 11:15 AM.


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