Author Topic: Robbing Player in Gups (Bug)  (Read 4302 times)

0 Members and 2 Guests are viewing this topic.

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Robbing Player in Gups (Bug)
« on: December 10, 2012, 08:37:37 pm »
[pawn]          else if (strcmp(cmd, "rob", true) == 0) {
      tmp = strtok( cmdtext, idx ); new plr = FindPlayerIDFromString( tmp );
            if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c rob [Nick/ID]" );
      else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
             else {
       
              new Float:RX, Float:RY, Float:RZ, szMsg[256];
                  GetPlayerPos(playerid,RX,RY,RZ);
                  if(PlayerToPoint(3.0,plr,RX,RY,RZ))
                        format( szMsg, sizeof( szMsg ), "%s is stealing the wallet of %s", gPlayers[playerid],gPlayers[plr]);
         SendClientMessageToAll( COLOR_RED, szMsg );
              SetTimer("robando", 7000, false);
                  TogglePlayerControllable(playerid,0);
                  IncPlayerHandCash(playerid,150);
              DecPlayerHandCash(plr,150);
             Billetera[playerid] = 1;
              SetPlayerMarker(playerid,15);
         }
  return 1;
   }[/pawn]
this is not rob other player this is rob yourself
« Last Edit: December 27, 2012, 08:19:27 pm by mrockxkingbutt »
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: how to add !rob playername
« Reply #1 on: December 10, 2012, 10:58:54 pm »
i need some basic cmds with some functions
!rob then type if you r near a player you can rob himlol understand
you not understand,make you own commands
the forum is for help not for give to you all commands
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: how to add !rob playername
« Reply #2 on: December 11, 2012, 09:17:35 am »
All u need to learn here are string functions and playertopoint


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: how to add !rob playername
« Reply #3 on: December 11, 2012, 09:46:52 pm »
i need some basic cmds with some functions
!rob then type if you r near a player you can rob himlol understand
you not understand,make you own commands
the forum is for help not for give to you all commands

I think is okay cuz he asked us for cmd in the right topic so.


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: how to add !rob playername
« Reply #4 on: December 11, 2012, 10:22:52 pm »
i need some basic cmds with some functions
!rob then type if you r near a player you can rob himlol understand
you not understand,make you own commands
the forum is for help not for give to you all commands

I think is okay cuz he asked us for cmd in the right topic so.

It's obvious that you do not understand why these forums were made. We are not here to script for others, we script at our own will for our own benefits, if others choose to help others, that's completly different. We are here to help, not to give away commands. He should try to do it himself and then post the script if he had any mistake.
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 aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: how to add !rob playername
« Reply #5 on: December 11, 2012, 10:26:58 pm »
Ask for all commands?? I dont think so...
Neskwriter you give all commands
To mrockxkingbutt
i need some basic cmds with some functions
!rob then type if you r near a player you can rob himlol understand
you not understand,make you own commands
the forum is for help not for give to you all commands

I think is okay cuz he asked us for cmd in the right topic so.
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: how to add !rob playername
« Reply #6 on: December 13, 2012, 06:29:01 pm »
Aledark what about to go to school?


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: how to add !rob playername
« Reply #7 on: December 27, 2012, 06:43:53 pm »
aledark is helping me making cmds
you r a great guy
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: how to add !rob playername
« Reply #8 on: December 27, 2012, 08:17:01 pm »
here is the AleDark24 rob cmd
[pawn]          else if (strcmp(cmd, "rob", true) == 0) {
      tmp = strtok( cmdtext, idx ); new plr = FindPlayerIDFromString( tmp );
            if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c rob [Nick/ID]" );
      else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
             else {
       
              new Float:RX, Float:RY, Float:RZ, szMsg[256];
                  GetPlayerPos(playerid,RX,RY,RZ);
                  if(PlayerToPoint(3.0,plr,RX,RY,RZ))
                        format( szMsg, sizeof( szMsg ), "%s is stealing the wallet of %s", gPlayers[playerid],gPlayers[plr]);
         SendClientMessageToAll( COLOR_RED, szMsg );
              SetTimer("robando", 7000, false);
                  TogglePlayerControllable(playerid,0);
                  IncPlayerHandCash(playerid,150);
              DecPlayerHandCash(plr,150);
             Billetera[playerid] = 1;
              SetPlayerMarker(playerid,15);
         }
  return 1;
   }[/pawn]
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol