Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: jimmy on January 07, 2012, 03:44:08 am

Title: i need some cmd for gups
Post by: jimmy on January 07, 2012, 03:44:08 am
hey guys how are u??Guys i need the cmd of !getcar , !heal , !wep and !gotoloc for gups
in !getcar cmd :when i getcar one time it come but second time it will not come
in !heal cmd: when i type heal they say me "you have to be hospital"i cant heal in another place plzz help
in !wep cmd: they say me type !wep [weponsname] [ammo] is dont want to type ammo i want to type !wep bla bla
in !gotoloc cmd:they say me type /c gotoloc [name] i want to write !gotoloc and if my level isnt big they say me you dont have to use this cmd plzzzzzzzzzzzzzzzz helllllllllppppppppppppppppp
Title: Re: i need some cmd for gups
Post by: SaFeeR on January 07, 2012, 06:05:38 pm
hmmmm
i cant solve getcar but take this cmds
Code: [Select]
if (strcmp(cmd, "heal", true) == 0)
   {
       tmp = strtok(cmdtext, idx);
      SetPlayerHealth(playerid,100);
      SendClientMessage(playerid,0xAAAAAA,"[SUCCESS]: Health 100%");
      return 1;
   }
Code: [Select]
else if (strcmp(cmd, "fix", true) == 0)
   {
       tmp = strtok(cmdtext, idx);
      SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
      SendClientMessage(playerid,0xAAAAAA,"[SUCCESS]: Your Car Is Fixed");
      return 1;
   }
Code: [Select]
else if (strcmp(cmd, "!we", true) == 0 || strcmp(cmd, "!wep", true) == 0) {
new wep;
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if (!strlen(tmp)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: !wep [WeaponName/ID]");
else {
wep = FindWepIDFromString(tmp);
if(wep != 33 || 3 ) SetPlayerWeapon(playerid,wep,9999999);
else SendClientMessage(playerid,COLOR_RED,"You can't get this weapon, sorry.");
}
return 1;
}
Title: Re: i need some cmd for gups
Post by: jimmy on January 07, 2012, 06:28:28 pm
safeer thanks man
Title: Re: i need some cmd for gups
Post by: jimmy on January 07, 2012, 06:29:25 pm
but i need also gotoloc cmd
Title: Re: i need some cmd for gups
Post by: sskritch on January 07, 2012, 07:57:18 pm
to safer SaFeeR:
**************THANKS for urs answer



do u post a !getcar script ? where please?








to  jimmy:
*********are u sure he  post a !getcar script ? where?
Title: Re: i need some cmd for gups
Post by: SaFeeR on January 07, 2012, 08:27:20 pm
to safer SaFeeR:
**************THANKS for urs answer



do u post a !getcar script ? where please?








to  jimmy:
*********are u sure he  post a !getcar script ? where?
sorry bro but i get some problem
but i m working on it
INSHALLAH ill give u !getcar cmd on 22 of this month
Title: Re: i need some cmd for gups
Post by: SaFeeR on January 07, 2012, 08:28:19 pm
here is !gotoloc cmd
and !saveloc added
Code: [Select]
else if ( strcmp( cmd, "!gotoloc", 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: !gotoloc [Name]" );
else
{
    new splitx[ 3 ][ 128 ], szMsg[ 128 ];
    if ( !IsLocationExist( tmp ) )
{
    format( szMsg, sizeof( szMsg ), "Location:[ %s ] does not exist.", tmp );
SendClientMessage( playerid, COLOR_GREEN, szMsg );
return 1;
    }
    split( dini_Get( "/SavedLocations/Locations.ini", tmp ), splitx, ' ' );

    SetPlayerPos( playerid, floatstr( splitx[ 0 ] ), floatstr( splitx[ 1 ] ), floatstr( splitx[ 2 ] ), 0, 0 );
    format( szMsg, sizeof( szMsg ), "Teleporting to location:[ %s ]", tmp );
SendClientMessage( playerid, COLOR_GREEN, szMsg );
}
return 1;
       }
Code: [Select]
else if ( strcmp( cmd, "!saveloc", 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: !saveloc [Name]" );
else
{
new szMsg[ 128 ], axcont[ 128 ], Float:x, Float:y, Float:z;
GetPlayerPos( playerid, x, y, z );

    format( axcont, 128, "%.5f %.5f %.5f", x, y, z );
    dini_Set( "/SavedLocations/Locations.ini", tmp, axcont );

    format( szMsg, sizeof( szMsg ), "Location saved as:[ %s ]", tmp );
SendClientMessage( playerid, COLOR_GREEN, szMsg );
}
return 1;
    }
Title: Re: i need some cmd for gups
Post by: sskritch on January 07, 2012, 08:59:53 pm
"sorry bro" -------- ^^ np ^^ :-)


THANKS FOR SHARING anyway. (you rockkk)
Title: Re: i need some cmd for gups
Post by: DilsonTB on January 07, 2012, 09:09:35 pm
I have notice that Leeter were right cuz YOU ONLY WANNA COPY AND PASTE YOU DONT WANNA LEARN YOU ONLY WANT TO COPY AND PASTE
Title: Re: i need some cmd for gups
Post by: sskritch on January 07, 2012, 09:54:23 pm
sujet: please go out ... DilsonTB !

!!!I HAVE NOTICID DAT U LIKE JOKE... WITH PPL , (ITS NOT URS BISENES)!!!

ps: couldly we need a mod here cause off DilsonTB who talk for nothing ... and who insult ppl ...




conclusion: 'sory'(for 'cry') but , 'kids' ... who ruin the fun ... shouldn't be allowed anywhere ... (& , anyway ... this guy''DilsonTB'' isnt constructive.) [couldly ... ppl reading forums dont like wast hes time with useless comments ... , he are looking for the best ... , ^ its just  me opinion ^]