Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Rob System By RoW
- Do Not Remove Credits !
- ________________________________________________________________________________
- _____________________________Include's________________________________________*/
- #include " a_samp "
- #include " zcmd "
- #include " sscanf2 "
- /*______________________________________________________________________________
- _____________________________OnFilterScriptInit_______________________________*/
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" R.O.B system by RoW");
- print("--------------------------------------\n");
- return 1;
- }
- /*______________________________________________________________________________
- _______________________________Command________________________________________*/
- CMD:rob( playerid , params [ ] )
- {
- new player , Float:x , Float:y , Float:z , xRob = ( random( 1000 ) + 1000 ) , str[ 128 ];
- if( sscanf( params , "u" ,player ) )return SendClientMessage( playerid , -1 , "{FF0000}Use{FFFFFF}: {00FF00}/rob {FFFFFF}< {FF0000}playerid {FFFFFF}> ");
- GetPlayerPos( player , x , y , z );
- if( IsPlayerInRangeOfPoint( player , 3.0 , x , y , z ) )return SendClientMessage( playerid , -1 , " {FF0000}Error: Esti prea departe de tinta ! " );
- if( player == INVALID_PLAYER_ID )return SendClientMessage( playerid , -1 , "{FF0000}Error: Player neconectat ");
- if( player == playerid )return SendClientMessage( playerid , -1 , "{FF0000}Error: Nu te poti jefui pe tine !");
- if( GetPlayerMoney( player ) < xRob )return SendClientMessage( playerid , -1 , "{FF0000}Error: E prea sarac pentru a fi jefuit !");
- GivePlayerMoney( playerid , xRob );
- GivePlayerMoney( player , -xRob );
- format( str , sizeof( str ) , "{00FF00}%s {FFFFFF}a fost jefuit de {FF0000}%s {FFFFFF}!", GetName( player ) , GetName( playerid ) );
- SendClientMessageToAll( -1 , str );
- return 1;
- }
- /*______________________________________________________________________________
- _______________________________Stock's________________________________________*/
- stock GetName( playerid )
- {
- new name[ MAX_PLAYER_NAME ];
- GetPlayerName( playerid , name , sizeof( name ) );
- return name;
- }
Advertisement
Add Comment
Please, Sign In to add comment