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 - SaFeeR

Pages: [1] 2 3
1
mIRC/pawn Scripting / Re: Need Cmds
« on: March 15, 2012, 10:30:38 am »
Uuh... Seems like PAWN doesn't support getting a car to you after you have been into it.. So it's a lost cause.
Code: [Select]
public OnPlayerExitVehicle(playerid, vehicleid)
{
    RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
use this :)

2
mIRC/pawn Scripting / Re: Cmd Problem
« on: March 04, 2012, 02:45:07 am »
Code: [Select]
    else if ( strcmp( cmd, "!gotoloc", true ) == 0 )
{
new vehicle;
  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 );
else
{
    split( dini_Get( "/SavedLocations/Locations.ini", tmp ), splitx, ' ' );
   
    SetPlayerPos( playerid, floatstr( splitx[ 0 ] ), floatstr( splitx[ 1 ] ), floatstr( splitx[ 2 ] ), 0, 0 );
    SetVehiclePos( vehicle, 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;
    }

try this
not tested
leave a comment if its work or not

3
mIRC/pawn Scripting / Re: need cmd !!!
« on: February 02, 2012, 02:12:20 pm »
this is working in my server
download my new v1.5

4
mIRC/pawn Scripting / Re: need cmd !!!
« on: February 02, 2012, 12:30:36 pm »
spree system take from warcheif
and

Code: [Select]
enum pInfo
{
Muted
}

Code: [Select]
public OnPlayerDisconnect( playerid, reason )
{
PlayerInfo[playerid][Muted] = 0;
return 1;
}

Code: [Select]
if(strcmp(cmd,"mute",true) == 0)
{
if(!IsAuthorized(playerid,"bring")) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
{
new plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c mute [Nick/ID]");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
if(PlayerInfo[plr][Muted] == 0)
{
PlayerInfo[plr][Muted] = 1;
new str[256];
format(str,sizeof(str),"ADMIN %s Muted %s for a long time...",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_WHITE,str);
SendClientMessage(plr,COLOR_RED,"Stop talking or you will be kicked...");
}
else
{
SendClientMessage(playerid,COLOR_RED,"You cannot mute him 2 times..");
}
}
}
return 1;
}
else if(strcmp(cmd,"unmute",true) == 0)
{
if(!IsAuthorized(playerid,"bring")) SendClientMessage( playerid, COLOR_RED, "You don't have access to use this command!" );
{
new plr;
tmp = strtok(cmdtext, idx), plr = FindPlayerIDFromString(tmp);
if (!strlen(tmp)) SendClientMessage(playerid,COLOR_RED,"USAGE: /c mute [Nick/ID]");
  else if (plr == INACTIVE_PLAYER_ID) SendClientMessage(playerid,COLOR_RED,"Error: Unknown player");
else {
if(PlayerInfo[plr][Muted] == 1)
{
PlayerInfo[plr][Muted] = 0;
new str[256];
format(str,sizeof(str),"ADMIN %s unmuted %s...",gPlayers[playerid],gPlayers[plr]);
SendClientMessageToAll(COLOR_WHITE,str);
SendClientMessage(plr,COLOR_RED,"You are free to talk...");
}
else
{
SendClientMessage(playerid,COLOR_RED,"You cannot unmute him without being muted..");
}
}
}
return 1;
}

Onplayertext

Code: [Select]
if(PlayerInfo[playerid][Muted] == 1)
{
  new str[256];
format(str,sizeof(str),"%s was been kicked for revealing the bannana from his mouth..",gPlayers[playerid]);
SendClientMessageToAll(COLOR_WHITE,str);
Kick(playerid);
  return 0;
}

5
mIRC/pawn Scripting / Re: News Function
« on: January 26, 2012, 06:51:29 pm »
see ur pm ;)

6
mIRC/pawn Scripting / Re: i need some cmds
« on: January 23, 2012, 01:29:48 pm »
take cmds from my script

7
mIRC/pawn Scripting / Re: Some Problem is Pawn script
« on: January 22, 2012, 01:25:45 pm »
hey guys im download safeer pawn script im go in server come welcome to Pak server im going to gamemodes then im going in pwn file im changed pak to FC then i go again come pak server can u tell me how i changed it?
thanks for using my script
you need to download pawno software
then change as you want
then compile it or press F5

:)

8
mIRC/pawn Scripting / Re: cmd problem
« on: January 16, 2012, 04:24:03 pm »
take this stopcar
Code: [Select]
else if ( strcmp( cmd, "!stopcar", true ) == 0 )
{
    tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: !stopcar [VehicleID]" );
else if ( !IsVehicleExist( strval( tmp ) ) ) SendClientMessage( playerid, COLOR_GREEN, "Error: Unknown Vehicle" );
else if ( !IsVehicleOwnedShared( strval( tmp ), gPlayers[ playerid ] ) ) SendClientMessage( playerid, COLOR_GREEN, "You Are Not Owner Of This Car." );
else
{
new vehicle = strval( tmp );
SendClientMessage( playerid, RED, "You Stopped Car....!!!" );
KillVehicleEngine( vehicle );
}
return 1;
}

9
mIRC/pawn Scripting / Re: cmd problem
« on: January 16, 2012, 03:03:05 pm »
i get some weps together this is the cmd its compiling but not working

   else if ( strcmp( cmd, "!gunspack1", true ) == 0 )
   {
    ResetPlayerWeapons(playerid),
      SetPlayerWeapon(playerid, 32, 26, 15, 10, 29, 24, 20 );
      format(szMsg, 128, "%s has taken a GunsPack1 for some DeathMatch.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
   }

this is my cmd help me its not giving me weps
becoz you r using setplayerweapon
use giveplayerweapon

take this
tested
Code: [Select]
else if ( strcmp( cmd, "!gunspack1", true ) == 0 )
   {
       ResetPlayerWeapons(playerid);
     GivePlayerWeapon(playerid, 24, 999999 );
      GivePlayerWeapon(playerid, 29, 999999 );
      GivePlayerWeapon(playerid, 10, 999999 );
      GivePlayerWeapon(playerid, 15, 999999 );
      GivePlayerWeapon(playerid, 26, 999999 );
      GivePlayerWeapon(playerid, 32, 999999 );
      GivePlayerWeapon(playerid, 20, 999999 );
      format(szMsg, 128, "%s has taken a GunsPack1 for some DeathMatch.",gPlayers[playerid]);
       SendClientMessageToAll( BLUE, szMsg );
      return 1;
    }

10
mIRC/pawn Scripting / Re: [Suggestion] Make a snippets board
« on: January 16, 2012, 02:03:46 pm »
agreee

11
mIRC/pawn Scripting / Re: i need !fight cmd
« on: January 12, 2012, 01:13:52 pm »
After reading your English:
Quote
format(szMsg, 128, "%s Is Enter In Fight Zone 1 For >>Some Action<<.",gPlayers[playerid]);
i can tell that it's made by you.  :P
sorry this is made by me but he edit this :P
i made this
Code: [Select]
format( szMsg, 128, "%s Is Now In Fight Zone, Type !fight To Enter In Fight Zone",gPlayers[playerid] );

12
mIRC/pawn Scripting / Re: i need !fight cmd
« on: January 11, 2012, 01:03:29 pm »
I give you my !fight command take it  :P
gangster i think this cmd is maded by me  ::)

13
mIRC/pawn Scripting / Re: i need some cmd for gups
« 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;
    }

14
mIRC/pawn Scripting / Re: i need some cmd for gups
« 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

15
mIRC/pawn Scripting / Re: i need some cmd for gups
« 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;
}

Pages: [1] 2 3