Author Topic: i need help  (Read 2076 times)

0 Members and 1 Guest are viewing this topic.

SOMAAN

  • Guest
i need help
« on: July 06, 2013, 09:39:44 am »
Hello i need help with some cmds
i need /c spawnatprop on/off  if it is on we spawn at our prop and it is only for player who have a prop
i need /c gotoveh  from it we can goto our vehicle it is only for player who have vehicles
i need !propmoney from it we get money from our prop by time and time
i need /c stuntmode on/off if on we dont get off from bike
i need /c get it is for admin only and from it we can get any player
i need /c rob from it we can rob player money
i need !team
and plz tell me how to add icons on radar, how to get x y z cordinates
and i need a help in to add id 408 pickup and its function is to give 1000$
plz help me
« Last Edit: July 06, 2013, 11:36:57 am by SOMAAN »

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: i need help
« Reply #1 on: July 06, 2013, 12:38:12 pm »
no way to make it urself? stop asking people to write codes for u, u look dumb


-Funniest quotes-

Quote from: asad3man
i cant able to understand

SOMAAN

  • Guest
Re: i need help
« Reply #2 on: July 06, 2013, 01:53:06 pm »
man i am dumb so thats why i asked you people,plz help me
« Last Edit: July 06, 2013, 01:54:44 pm by SOMAAN »

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: i need help
« Reply #3 on: July 06, 2013, 04:30:49 pm »
for get coordinates write /s and find in you vc folder the archive .txt i think is named vcmp- coords.txt
for command... learn pawn or sq!!!! for icons in the radar map... is bugged in pwn


sorry but not is possible make all command and give for any player.....


because not all people have time to lose whit noobs in scripting


sorry for my bad english
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline vinesh

  • Street Thug
  • *
  • Posts: 20
    • View Profile
Re: i need help
« Reply #4 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