Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - vinesh

Pages: 1 [2]
16
mIRC/pawn Scripting / Re: Who can give me an empty script?Please~~
« on: August 05, 2013, 02:33:35 pm »
download vcmp mode it is the same what u said




17
mIRC/pawn Scripting / Re: kick system
« on: August 05, 2013, 02:09:17 pm »
I cant find them Neskwriter, can u give me the link where it is

18
mIRC/pawn Scripting / Re: help me
« on: August 05, 2013, 08:52:59 am »

Put this behind of another new in the top of the script

[pawn]new PickCash[MAX_PLAYERS];[/pawn]

Put this in OngameModeInit

[pawn]AddStaticPickup(120,501,-944.65417,-343.91436,7.22693); // this is the location of the bank vault[/pawn]

Add this in OnPickedUp


[pawn]    if(pickupid == 120) {
        new string[128];
          format(string, sizeof(string), "%s take $ 1000 from the Bank", gPlayers[playerid]);
    SendClientMessageToAll(AMARILLO, string);
IncPlayerHandCash(playerid,1000);
TogglePlayerControllable(playerid,0);
SetTimer( "Cash", 10000,false);
PickCash[playerid] = 1;
 }[/pawn]
Put this in the end of the script
[pawn]//================================================================
public Cash() {
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
       if(PickCash == 1) {
          SendClientMessage(i,0xFFFF00AA,"You picked up $1000!");
         TogglePlayerControllable(i,1);
           PickCash = 0;
      }
  }
      }
}
//==============================================================================[/pawn]

All the public functions must be forwarded, if my memory serves me. So, else:
[pawn]forward Cash();[/pawn]
in the top

I think your memory failure, as the settimer I use is "false" only works once, and starts at the pick the pickup if I remember correctly takes more than 30 seconds to appear

remember that you died for something

I think u forgot to put new string[128];

19
mIRC/pawn Scripting / Re: i need help
« on: August 05, 2013, 07:30:48 am »
Ok first,

408 pickup and its function is to give 1000$

Paste this in

public OnPickedUp( pickupid, playerid )
{
[pawn]if(pickupid == 161) {

    new szMsg[128];
    format( szMsg, sizeof( szMsg ), "%s has Robbed Biker's Bar (Downtown)", gPlayers[ playerid ] );
    SendClientMessageToAll(COLOR_YELLOW, szMsg );
    GameTextForPlayer(playerid, "You Have Robbed 1000$");
    IncPlayerHandCash( playerid, 1000 );
}

[/pawn]

and In

public OnGameModeInit()
{

[pawn]AddStaticPickup(161,408,-594.69866, 643.36383, 11.67646);[/pawn]
//...//

/c get


paste this in /c commands


[pawn]

else if ( strcmp( cmd, "get", 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 ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
      else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c get [Nick/ID]" );
      else if ( plr == INACTIVE_PLAYER_ID ) SendClientMessage( playerid, COLOR_RED, "Error: Unknown player" );
      else if ( !IsPlayerSpawned( plr ) ) SendClientMessagef( playerid, COLOR_GREEN, "Error: %s does not spawned!", gPlayers[ plr ] );
      else
      {
         new Float:x, Float:y, Float:z, szMsg[ 128 ];
         GetPlayerPos( playerid, x, y, z );
         SetPlayerPos( plr, x, y + 1.0, z, 0, 0 );
         format( szMsg, sizeof( szMsg ), "Teleporting:[ %s ] to:[ %s ]", gPlayers[ plr ], gPlayers[ playerid ] );
         SendClientMessageToAll( COLOR_GREEN, szMsg );
      }
      return 1;
   }[/pawn]


//...//
[pawn]else if ( strcmp( cmd, "stuntmode", true ) == 0 )
   {
      tmp = strtok( cmdtext, idx );
      if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
      else if ( !IsAuthorized( playerid, cmd ) ) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
      else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: /c stuntmode [on/off]" );
      else
      {
         if ( strcmp( tmp, "on", true ) == 0 )
         {
            EnableStuntBike( 255, 1 );
            SendClientMessage( playerid, COLOR_GREEN, "Stuntmode Enabled." );
         }
         else if ( strcmp( tmp, "off", true ) == 0 )
         {
            EnableStuntBike( 255,0 );
            SendClientMessage( playerid, COLOR_GREEN, "Stuntmode Disabled." );
         }
         else SendClientMessage( playerid, COLOR_GREEN, "Syntax Error! USAGE: /c stuntmode [on/off]" );
      }
      return 1;
   }
[/pawn]

 wait i will soon tell about remaining cmds


20
ShowRoom (pawn) / Re: [Update]My new server [GM from 0]
« on: June 05, 2013, 04:28:30 am »
Your are good scripter Aledark :D

Pages: 1 [2]