Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined SYSTEM
- __________________________________________________________________________________________________________________________________
- _| _| _|_|_| _|_|_|
- _|_|_| _| _| _| _| _|
- _| _| _| _| _| _|_|_|
- _| _| _| _| _| _|
- _|_|_| _| _|_|_| _|
- _|_|_| _|
- _| _| _| _|_|_| _|_|_|_| _|_| _|_|_| _|_|
- _|_| _| _| _|_| _| _|_|_|_| _| _| _|
- _| _| _| _|_| _| _| _| _| _|
- _|_|_| _|_|_| _|_|_| _|_| _|_|_| _| _| _|
- _|
- _|_|
- __________________________________________________________________________________________________________________________________
- | aVip System Was Created On 12 of April |
- | OVER 24 COMMANDS |
- ______________________________
- | Contains : |
- | - Rcon Commands |
- | - Vip Level 3 Cmds |
- | - Vip Level 2 Cmds |
- | - Vip Level 1 Cmds |
- | - All Users Cmds |
- | |
- |____________________________|
- | - Rcon Commands |
- |____________________________|
- | /setvip |
- | /crash |
- |____________________________|
- | - Vip Level 3 Cmds |
- |____________________________|
- | /vgoto |
- | /vget |
- | /vunwarn |
- | /vwarn |
- |____________________________|
- | - Vip Level 2 Cmds |
- |____________________________|
- | /invitevw |
- | /vw |
- | /mycolor |
- | /vkick |
- | /rw |
- | /vcar |
- | /vannounce |
- | /vgod |
- | /god |
- |____________________________|
- | - Vip Level 1 Cmds |
- |____________________________|
- | /spawnme |
- | /vweapons |
- | /myweather |
- | /mytime |
- | /vsay |
- | /maxxammo |
- | /ltc[ 1 -10 ] |
- |____________________________|
- | - All Users Cmds |
- |____________________________|
- | /vips |
- | /vcmds |
- |____________________________|
- ____________________________
- | - Thanks To This |
- |____________________________|
- | Alex "Y_LESS" Cole |
- | - Sscanf & Foreach |
- |____________________________|
- | DarkyTheAngel |
- | - Tester |
- |____________________________|
- | Zeex |
- | - COMMAND PROCESSOR |
- | Zcmd |
- |____________________________|
- | SQLite |
- | - SAMP |
- |____________________________|
- | Loadin / Save |
- | - Rimmon |
- |____________________________|
- | Created By |
- | - Allex |
- |____________________________|
- Cotact me for details :
- alex_toja13@yahoo.com - Y!M
- alex13.dumi@gmail.com - Gmail
- #endif
- //______________________________________________________________________________
- #include " a_samp "
- #include " sscanf2 "
- #include " Zcmd "
- #include " foreach "
- #define fc%0(%1) forward%0(%1);\
- public%0(%1)
- #define function%0(%1) forward%0(%1); public%0(%1)
- //______________________________________________________________________________
- stock bool:False = false;
- new
- G_str[ 256 ];
- //______________________________________________________________________________
- enum P_ENUM_DATA
- {
- pId , pVip , bool: pLogged ,
- vGod , vCarGod , vSpec ,
- vSpecId , pPass , Warn ,
- pCar ,
- };
- new
- P_DATA[ MAX_PLAYERS ][ P_ENUM_DATA ],
- DB:Vips;
- //______________________________________________________________________________
- #define O "{FF5500}"
- #define R "{FF0000}"
- #define W "{FFFFFF}"
- #define ShowDialog ShowPlayerDialog
- #define vRegister 1
- #define vLogin 2
- #define vReconnect 3
- #define VIPS 4
- #define VCMDS 5
- #define fSCM(%0,%1,%2,%3)\
- do{\
- format( G_str , 256 , ( %2 ) , %3 );\
- SendClientMessage( ( %0 ) , ( %1 ) , G_str );\
- }\
- while( False )
- //______________________________________________________________________________
- public OnFilterScriptInit()
- {
- print("\n_____________________________________________________ ");
- print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : V.I.P. S.Y.S.T.M. _______ ");
- print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : L.O.A.D.I.N.G. _______ ");
- print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : C.R.E.A.T.E.D B.Y. _______ ");
- print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : A.L.L.E.X _______ ");
- print("______________________________________________________\n ");
- Vips = db_open( "Vips.db" ); // Numele La BD ! Poti schimba
- db_free_result( db_query( Vips, "CREATE TABLE IF NOT EXISTS 'Vips' \
- ( 'Name' varchar( 40 ),\
- 'Vip' INT )" ) ) ;
- return 1;
- }
- //______________________________________________________________________________
- public OnFilterScriptExit()
- {
- db_close( Vips );
- return 1;
- }
- //______________________________________________________________________________
- public OnPlayerConnect(playerid)
- {
- new
- Query[255],
- DBResult:result;
- format(Query,255,"SELECT * FROM `Vips` WHERE `Name` = '%s'",vName(playerid));
- result = db_query(Vips,Query);
- if(!db_num_rows(result))
- {
- format(Query,255,"INSERT INTO `Vips` VALUES(`%s`,`%d`)",vName(playerid),P_DATA[playerid][pVip]);
- db_query(Vips,Query);
- }
- else
- {
- new
- Field[30];
- db_get_field_assoc(result,"Vip",Field,30);
- P_DATA[playerid][pVip] = strval(Field);
- }
- return 1;
- }
- //______________________________________________________________________________
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- //______________________________________________________________________________
- public OnPlayerSpawn(playerid)
- {
- new
- V_Str[ 110 ];
- format( V_Str, 110 , ""O"Welcome "R"%s "O"on this server !\n"O"You are logged as VIP Level: "R"%d", vName( playerid ), P_DATA[ playerid ][ pVip ] );
- ShowDialog( playerid , vReconnect , DIALOG_STYLE_MSGBOX , ""O"VIP System", V_Str , "Ok" , "Cancel" );
- return 1;
- }
- //______________________________________________________________________________
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- //______________________________________________________________________________
- public OnPlayerText(playerid, text[])
- {
- text[ 0 ] = toupper( text[ 0 ] );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- new
- str[200];
- format( str, 200,"{00FFFF}[%d] {FF8800}[V.I.P] : {FFFFFF}%s", playerid , text[0] );
- SendPlayerMessageToAll( playerid , str ) ;
- return 0;
- }
- if( text[ 0 ] == '@' && P_DATA[ playerid ][ pVip ] >= 1 )
- {
- new
- vText[ 500 ];
- format( vText, sizeof vText, ""O"V.I.P. Chat: "R"%s: "R"%s ", vName( playerid ) , text );
- SendClientMessageToAll( -1 , vText );
- return 0;
- }
- return 1;
- }
- //______________________________________________________________________________
- stock vName( playerid )
- {
- new
- VipName[ 24 ];
- GetPlayerName( playerid , VipName , 24 );
- return VipName ;
- }
- //______________________________________________________________________________
- stock VCmds()
- {
- new vCmds[ 1100 ];
- vCmds[ 0 ]='\0';
- strcat( vCmds , "\n"O"This VIP System Contains:", 1100 );
- strcat( vCmds , "\n"O"- Rcon Commands", 1100 );
- strcat( vCmds , "\n"O"- Vip Level 3 Cmds", 1100 );
- strcat( vCmds , "\n"O"- Vip Level 2 Cmds", 1100 );
- strcat( vCmds , "\n"O"- Vip Level 1 Cmds", 1100 );
- strcat( vCmds , "\n"O"- All users Cmds", 1100 );
- strcat( vCmds , "\n", 1100 );
- strcat( vCmds , "\n"O"- Rcon Commands:", 1100 );
- strcat( vCmds , "\n"O"\t/setvip", 1100 );
- strcat( vCmds , "\n"O"\t/crash", 1100 );
- strcat( vCmds , "\n", 1100 );
- strcat( vCmds , "\n"O"- Vip Level 3 Cmds", 1100 );
- strcat( vCmds , "\n"O"\t/vgoto", 1100 );
- strcat( vCmds , "\n"O"\t/vget", 1100 );
- strcat( vCmds , "\n"O"\t/vunwarn", 1100 );
- strcat( vCmds , "\n"O"\t/vwarn", 1100 );
- strcat( vCmds , "\n", 1100 );
- strcat( vCmds , "\n"O"- Vip Level 2 Cmds", 1100 );
- strcat( vCmds , "\n"O"\t/invitevw", 1100 );
- strcat( vCmds , "\n"O"\t/vw", 1100 );
- strcat( vCmds , "\n"O"\t/mycolor", 1100 );
- strcat( vCmds , "\n"O"\t/vkick", 1100 );
- strcat( vCmds , "\n"O"\t/rw", 1100 );
- strcat( vCmds , "\n"O"\t/vcar", 1100 );
- strcat( vCmds , "\n"O"\t/vannounce", 1100 );
- strcat( vCmds , "\n"O"\t/vgod", 1100 );
- strcat( vCmds , "\n"O"\t/god", 1100 );
- strcat( vCmds , "\n"O"\t/mycolor", 1100 );
- strcat( vCmds , "\n", 1100 );
- strcat( vCmds , "\n"O"- Vip Level 1 Cmds", 1100 );
- strcat( vCmds , "\n"O"\t/spawnme", 1100 );
- strcat( vCmds , "\n"O"\t/vweapons", 1100 );
- strcat( vCmds , "\n"O"\t/myweather", 1100 );
- strcat( vCmds , "\n"O"\t/mytime", 1100 );
- strcat( vCmds , "\n"O"\t/vsay", 1100 );
- strcat( vCmds , "\n"O"\t/maxxammo", 1100 );
- strcat( vCmds , "\n"O"\t/ltc[ 1-10 ]", 1100 );
- strcat( vCmds , "\n", 1100 );
- strcat( vCmds , "\n"O"- All users Cmds", 1100 );
- strcat( vCmds , "\n"O"\t/vips", 1100 );
- strcat( vCmds , "\n"O"\t/vcmds", 1100 );
- return vCmds;
- }
- //______________________________________________________________________________
- stock MaxAmmo( playerid )
- {
- new
- vArma ,
- vMunitie ;
- foreach(new loc: Player)
- {
- GetPlayerWeaponData( playerid , loc , vArma , vMunitie );
- if( vArma > 0 && vArma < 19 || vArma > 22 && vArma < 48 )
- {
- GivePlayerWeapon( playerid , vArma , 99999999 );
- }
- }
- return 1;
- }
- //______________________________________________________________________________
- forward CarSpawner(playerid,model);
- public CarSpawner(playerid,model)
- {
- if( IsPlayerInAnyVehicle( playerid )) SendClientMessage(playerid, -1, "You already have a car!");
- else
- {
- new
- Float:x,
- Float:y,
- Float:z,
- Float:angle;
- GetPlayerPos( playerid, x, y, z);
- GetPlayerFacingAngle( playerid, angle );
- if( P_DATA[ playerid ][ pCar ] != -1) CarDeleter( P_DATA[ playerid ][ pCar ]);
- new vehicleid = CreateVehicle( model, x, y, z, angle, -1, -1, -1);
- PutPlayerInVehicle( playerid, vehicleid, 0);
- SetVehicleVirtualWorld( vehicleid, GetPlayerVirtualWorld( playerid ) );
- LinkVehicleToInterior( vehicleid, GetPlayerInterior( playerid ) );
- ChangeVehicleColor( vehicleid,0,7 );
- P_DATA[ playerid ][ pCar ] = vehicleid;
- }
- return 1;
- }
- //______________________________________________________________________________
- forward CarDeleter(vehicleid);
- public CarDeleter(vehicleid)
- {
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- new
- Float:X,
- Float:Y,
- Float:Z;
- if(IsPlayerInVehicle( i, vehicleid ) )
- {
- RemovePlayerFromVehicle(i);
- GetPlayerPos( i, X , Y , Z );
- SetPlayerPos( i, X , Y+3, Z );
- }
- SetVehicleParamsForPlayer(vehicleid,i,0,1);
- }
- SetTimerEx("VehRes",1500,0,"i",vehicleid);
- }
- //______________________________________________________________________________
- forward VehRes(vehicleid);
- public VehRes(vehicleid)
- {
- DestroyVehicle( vehicleid );
- }
- //________________________________VIP Commands__________________________________
- CMD:vips( playerid , params[ ] )
- {
- new
- Vipss,
- V_Str[ 2048 ]; // 2048 string l-am marit sa se vada mai multi VIPS Online
- foreach(new i: Player)
- {
- if( IsPlayerConnected( i ) && P_DATA[ i ][ pVip ] > 0 )
- {
- format( V_Str , sizeof V_Str , "\n"O"V.I.P "R"%s - "O"Level %d", vName( i ), P_DATA[ i ][ pVip ] );
- Vipss ++ ;
- }
- }
- if( Vipss == 0 )
- {
- format( V_Str , sizeof V_Str , "\n"O"No VIP Members Online at this time" );
- }
- return ShowDialog( playerid , VIPS , DIALOG_STYLE_MSGBOX, ""O"Online Vips", V_Str , "Ok" , "Cancel" );
- }
- CMD:vcmds( playerid , params[ ] ) return ShowDialog( playerid , VCMDS , DIALOG_STYLE_MSGBOX , ""O"VIP Commands", VCmds( ) , "Ok", "Cancel" );
- //________________________________VIP Level 1 Commands__________________________
- CMD:vsay( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- new
- V_String[ 256 ];
- if( sscanf( params , "s[256]", V_String ) )
- return SendClientMessage( playerid , -1, ""R"Usaage: "O"/vsay [ /text ] ");
- format( V_String , sizeof V_String, ""O"%s "W"[ "O"V "W"]: "O"%s", vName( playerid ) , V_String );
- SendClientMessage( playerid, -1, V_String );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:maxxammo( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- MaxAmmo( playerid );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:mytime( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- new
- vTime ,
- V_Str[ 128 ];
- if( sscanf ( params , "d", vTime ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/mytime [ time ]" );
- if( vTime < 0 || vTime > 24 )
- return SendClientMessage( playerid , -1 , ""O"Only Beetween 1 - 24 Time" );
- SetPlayerTime( playerid , vTime , 0 );
- format( V_Str , sizeof V_Str , ""O"You have set your time to "R"%d" , vTime );
- SendClientMessage( playerid , -1 , V_Str );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:myweather( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- new
- vWeat ,
- V_Str[ 128 ];
- if( sscanf ( params , "d", vWeat ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/myweather [ time ]" );
- if( vWeat < 0 || vWeat > 52 )
- return SendClientMessage( playerid , -1 , ""O"Only Beetween 1 - 52 Time" );
- SetPlayerWeather( playerid , vWeat );
- format( V_Str , sizeof V_Str , ""O"You have set your Weather to "R"%d" , vWeat );
- SendClientMessage( playerid , -1 , V_Str );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vweapons( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- GivePlayerWeapon( playerid ,28, 120); //Arma: Micro SMG || Gloante: 120
- GivePlayerWeapon( playerid, 31, 75); //Arma: M4 || Gloante: 75
- GivePlayerWeapon( playerid, 34, 15); //Arma: Sniper Rifle || Gloante: 15
- GivePlayerWeapon( playerid, 24, 110); //Arma: Desert Eagle || Gloante: 110
- GivePlayerWeapon( playerid, 26, 100); //Arma: Sawn-off Shotgun || Gloante: 100
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:spawnme( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- SpawnPlayer( playerid );
- SendClientMessage( playerid , -1 , ""O"Spawned With Succes ! ");
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1086);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc2( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1086);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),2);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc3( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1065);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1067);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1162);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc4( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1046);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1049);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1053);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc5( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1088);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1092);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc6( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1086);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
- AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0);
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc7( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1034);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1038);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1147);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc8( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1109);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1115);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1117);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1087);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1114);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1081);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1119);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1121);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc9( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1092);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1166);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1165);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1090);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1094);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1087);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1163);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1091);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),2);
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:ltc10( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 1 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 1 )
- {
- CarSpawner(playerid, 562);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1034);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1038);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1147);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
- AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
- ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0);
- }
- return 1;
- }
- //________________________________VIP Level 2 Commands__________________________
- CMD:god( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- if( P_DATA[ playerid ][ vGod ] == 0 )
- {
- P_DATA[ playerid ][ vGod ] = 1 ;
- SetPlayerHealth( playerid , 999999 );
- SetPlayerArmour( playerid , 999999 );
- SendClientMessage( playerid , -1 , ""R"GODMODE "O"ON" );
- new
- Query[ 256 ];
- format( Query , sizeof Query , "UPDATE 'Vips' SET 'God' = '%d' WHERE 'Name' = '%s'", P_DATA[ playerid ][ vGod ], vName( playerid ) );
- db_free_result( db_query( Vips , Query ) ) ;
- }
- else
- {
- P_DATA[ playerid ][ vGod ] = 0;
- SendClientMessage( playerid , -1 , ""R"GODMODE "O"OFF" );
- SetPlayerHealth( playerid , 100 );
- new
- Query[ 256 ];
- format( Query , sizeof Query , "UPDATE 'Vips' SET 'God' = '%d' WHERE 'Name' = '%s'", P_DATA[ playerid ][ vGod ], vName( playerid ) );
- db_free_result( db_query( Vips , Query ) ) ;
- }
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vgod( playerid , params[ ] )
- {
- new
- vehicleid;
- vehicleid = GetPlayerVehicleID( playerid );
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- if( P_DATA[ playerid ][ vCarGod ] == 0 )
- {
- P_DATA[ playerid ][ vCarGod ] = 1 ;
- SetVehicleHealth( vehicleid , 999999 );
- SendClientMessage( playerid , -1 , ""R"GODMODECAR "O"ON" );
- }
- else
- {
- SendClientMessage( playerid , -1 , ""R"GODMODECAR "O"OFF" );
- P_DATA[ playerid ][ vCarGod ] = 0 ;
- SetVehicleHealth( vehicleid , 100 );
- }
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vannounce( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- if( sscanf ( params , "s[128]" , params[ 0 ] ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vannounce [ text ] " );
- GameTextForAll( params[ 0 ], 6000 , 1 );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vcar( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- new
- Float: X ,
- Float: Y ,
- Float: Z ,
- Float: A ,
- C ;
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if( IsPlayerInAnyVehicle( playerid ) )
- return SendClientMessage( playerid , -1 , ""R"ERROR: You Have A Vehicle !" );
- GetPlayerPos( playerid , X , Y , Z );
- GetPlayerFacingAngle( playerid , A );
- C = CreateVehicle( playerid , X , Y, Z, A, 0, 0, 0 ); // Buffalo
- PutPlayerInVehicle( playerid , C, 0 );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:rw( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- GivePlayerWeapon( playerid, 4, 1); //Knife
- GivePlayerWeapon( playerid, 28, 1000); // Micro - SMG
- GivePlayerWeapon( playerid, 26, 100); // Sawn-off Shotgun
- GivePlayerWeapon( playerid, 22, 500); // 9mm Pistol
- }
- return 1 ;
- }
- //______________________________________________________________________________
- CMD:vkick( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if( !IsPlayerConnected( playerid ) )
- return SendClientMessage( playerid , -1 , ""O"Player Not Connected" );
- if( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- new
- vKicked,
- vReason[ 129 ],
- V_Str[ 256 ];
- if( sscanf( params, "us[128]", vKicked, vReason ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vkick [ playerid ] [ reason ]" );
- if( !strlen( vReason ) )
- {
- format( V_Str , sizeof V_Str , ""R"%s "O"has been kicked by "R"%s "O"[ no reason give ] ", vName( vKicked ), vName( playerid ) );
- SendClientMessageToAll( -1 , V_Str );
- Kick( vKicked );
- }
- else
- {
- format( V_Str , sizeof V_Str , ""R"%s "O"has been kicked by "R"%s "O"[ Reason: %s ] ", vName( vKicked ), vName( playerid ), vReason );
- SendClientMessageToAll( -1 , V_Str );
- Kick( vKicked );
- }
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:mycolor( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if ( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- new Culoare,
- Colour[ 24 ];
- if ( sscanf( params, "d", Culoare ) )
- return SendClientMessage( playerid, -1 , ""R"/mycolor "O"[color] 0 = Black | 1 = White | 2 = Red | 3 = Orange | 4 = Yellow | 5 = Green | 6 = Blue | 7 = Purple | 8 = Brown" );
- if ( Culoare > 8 )
- return SendClientMessage( playerid, -1, "O""Colours: 0 = Black | 1 = White | 2 = Red | 3 = Orange | 4 = Yellow | 5 = Green | 6 = Blue | 7 = Purple | 8 = Brown" );
- switch ( Culoare )
- {
- case 0:
- {
- SetPlayerColor( playerid, 0x000000AA ); Colour = "Black";
- }
- case 1:
- {
- SetPlayerColor( playerid, 0xFFFFFFAA ); Colour = "White";
- }
- case 2:
- {
- SetPlayerColor( playerid, 0xE60000AA ); Colour = "Red";
- }
- case 3:
- {
- SetPlayerColor( playerid, 0xFF5500AA ); Colour = "Orange";
- }
- case 4:
- {
- SetPlayerColor( playerid, 0xFFFF00AA ); Colour = "Yellow";
- }
- case 5:
- {
- SetPlayerColor( playerid, 0x00FF00AA ); Colour = "Green"; }
- case 6:
- {
- SetPlayerColor( playerid, 0x0000BBAA ); Colour = "Blue"; }
- case 7:
- {
- SetPlayerColor( playerid, 0x800080AA ); Colour = "Purple";
- }
- case 8:
- {
- SetPlayerColor( playerid, 0xA52A2AAA ); Colour = "Brown";
- }
- }
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vw( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if ( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- new
- VW,
- vString[ 200 ];
- if( sscanf ( params , "i" , VW ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vw [ world ]" );
- if( VW > 999999 )
- return SendClientMessage( playerid , -1 , ""O"Invalid Virtual World" );
- if( IsPlayerInAnyVehicle( playerid ))
- {
- SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ) , VW );
- SetPlayerVirtualWorld( playerid , VW );
- format( vString , sizeof vString , ""O"You Have Set Your World To "R"%d" , VW );
- SendClientMessageToAll( -1 , vString );
- }
- else
- {
- SetPlayerVirtualWorld( playerid , VW );
- format( vString , sizeof vString , ""O"You Have Set Your World To "R"%d" , VW );
- SendClientMessageToAll( -1 , vString );
- }
- }
- return 1 ;
- }
- //______________________________________________________________________________
- CMD:invitevw( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 2 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
- if ( P_DATA[ playerid ][ pVip ] >= 2 )
- {
- new
- Player,
- vwString[ 300 ];
- if( sscanf ( params , "u", Player ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/invitevw [ playerid ]" );
- if( !IsPlayerConnected( Player ) )
- return SendClientMessage( playerid, -1 , ""R"Player not connected!");
- format( vwString , sizeof vwString , ""O"%s ( %d ) invited you to enter in %d "O"Virtual World ( "R"VW "O") " , vName( playerid ) , playerid , GetPlayerVirtualWorld( playerid ) );
- SendClientMessageToAll( -1 , vwString );
- format( vwString , sizeof vwString , ""R"Use "O"/vw [ %d ] to enter in "R"%s's "O"Virtual World ( "R"VW "O") ", GetPlayerVirtualWorld( playerid ) , vName( playerid ) );
- SendClientMessageToAll( -1 , vwString );
- }
- return 1;
- }
- //________________________________VIP Level 3 Commands__________________________
- CMD:vwarn( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 3 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
- if ( P_DATA[ playerid ][ pVip ] >= 3 )
- {
- new
- Player,
- V_Str[ 256 ],
- vReason[ 126 ];
- if( sscanf( params , "us[126]", Player, vReason ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vwarn [ playerid ] [ reason ]" );
- if( P_DATA[ playerid ][ pVip ] > P_DATA[ playerid ][ pVip ] )
- return SendClientMessage( playerid , -1 , ""O"You can't use this command on a VIP" );
- if( !IsPlayerConnected( Player ) )
- return SendClientMessage( playerid , -1 , ""R"Error: Player Not Connected" );
- P_DATA[ Player ][ Warn ] ++ ;
- format( V_Str , sizeof V_Str , ""R"%s "O"got a warn from "R"VIP %s ! "O"[ Reason : %s ] ", vName( Player ) , vName( playerid ) , vReason );
- SendClientMessageToAll( -1 , V_Str );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vunwarn( playerid , params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 3 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
- if ( P_DATA[ playerid ][ pVip ] >= 3 )
- {
- new
- Player,
- V_Str[ 256 ],
- vReason[ 126 ];
- if( sscanf( params , "us[126]", Player, vReason ) )
- return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vumwarn [ playerid ] [ reason ]" );
- if( P_DATA[ playerid ][ pVip ] > P_DATA[ playerid ][ pVip ] )
- return SendClientMessage( playerid , -1 , ""O"You can't use this command on a VIP" );
- if( !IsPlayerConnected( Player ) )
- return SendClientMessage( playerid , -1 , ""R"Error: Player Not Connected" );
- P_DATA[ Player ][ Warn ] -- ;
- format( V_Str , sizeof V_Str , ""R"%s "O"got a unwarn from "R"VIP %s ! "O"[ Reason : %s ] ", vName( Player ) , vName( playerid ) , vReason );
- SendClientMessageToAll( -1 , V_Str );
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vgoto( playerid , params[ ] )
- {
- new
- Player,
- V_Str[ 128 ],
- Float:x,
- Float:y,
- Float:z;
- if( P_DATA[ playerid ][ pVip ] < 3 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
- if( !IsPlayerConnected( playerid ) )
- return SendClientMessage( playerid , -1 , ""O"Player Not Connected" );
- if ( P_DATA[ playerid ][ pVip ] >= 3 )
- {
- if ( sscanf( params, "u", Player ) )
- return SendClientMessage( playerid, -1, ""R"Usage: "O"/vipgoto [ playerid ]" );
- GetPlayerPos( Player , x , y , z );
- SetPlayerInterior( playerid , GetPlayerInterior( Player ) );
- SetPlayerVirtualWorld( playerid , GetPlayerVirtualWorld( Player ) );
- if ( IsPlayerConnected( Player ) && Player != INVALID_PLAYER_ID && Player != playerid )
- {
- if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
- {
- SetVehiclePos( GetPlayerVehicleID( playerid ) , x+3 , y , z );
- LinkVehicleToInterior( GetPlayerVehicleID( playerid ), GetPlayerInterior( Player ) );
- SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), GetPlayerVirtualWorld( Player ) );
- format( V_Str , sizeof V_Str , ""O"You have teleported to "R"%s's "O"location!" , vName( Player ) );
- SendClientMessage( playerid ,-1 ,V_Str );
- format( V_Str, sizeof V_Str , ""O"V.I.P "R"%s(%d) "O"has teleported to your location!", vName( playerid ), P_DATA[ playerid ][ pVip ] );
- SendClientMessage( Player, -1, V_Str );
- }
- else
- {
- SetPlayerPos( playerid , x+2 , y , z );
- format( V_Str, sizeof V_Str , ""O"V.I.P "R"%s(%d) "O"has teleported to your location!", vName( playerid ), P_DATA[ playerid ][ pVip ] );
- SendClientMessage( Player, -1, V_Str );
- format( V_Str , sizeof V_Str , ""O"You have teleported to "R"%s's "O"location!" , vName( Player ) );
- SendClientMessage( playerid ,-1 ,V_Str );
- }
- }
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:vget( playerid, params[ ] )
- {
- if( P_DATA[ playerid ][ pVip ] < 3 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
- if( !IsPlayerConnected( playerid ) )
- return SendClientMessage( playerid , -1 , ""O"Player Not Connected" );
- if ( P_DATA[ playerid ][ pVip ] >= 3 )
- {
- new
- Player,
- Float:x,
- Float:y,
- Float:z ;
- if ( sscanf( params, "u", Player ) )
- return SendClientMessage( playerid, -1, ""O"USAGE: "R"/get [ PlayerID ]" );
- if ( !IsPlayerConnected( Player ) )
- return SendClientMessage( playerid, -1, ""R"Error: Player not connected!");
- if ( Player == playerid )
- return SendClientMessage( playerid, -1, ""O"You can't teleport to yourself !" );
- GetPlayerPos( playerid, x, y, z );
- SetPlayerInterior( Player, GetPlayerInterior( playerid ) );
- SetPlayerVirtualWorld( Player, GetPlayerVirtualWorld( playerid ) );
- if ( GetPlayerState( Player ) == 2 )
- {
- new VehicleID = GetPlayerVehicleID( Player );
- SetVehiclePos( VehicleID, x+3, y, z );
- LinkVehicleToInterior( VehicleID, GetPlayerInterior( playerid ) );
- SetVehicleVirtualWorld( GetPlayerVehicleID( Player ), GetPlayerVirtualWorld( playerid ) );
- }
- else SetPlayerPos( Player, x+2, y, z );
- fSCM( Player, -1, "You have been teleported to \"%s's\" location", vName( playerid ) );
- fSCM( playerid, -1, "You have teleported \"%s\" to your location", vName( Player ) );
- }
- return 1;
- }
- //_____________________________________RCON COMMANDS____________________________
- CMD:setvip( playerid , params[ ] )
- {
- new
- Player,
- Amount,
- V_Str[ 256 ],
- Query[ 256 ],
- DBResult:Result;
- if( !IsPlayerAdmin( playerid ) )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have "R"RCON "O"For Use This Command" );
- if( Amount > 3 )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"This VIP Level Doesn't exists" );
- format( Query , sizeof Query , "SELECT * FROM 'Vips' WHERE 'Name' = '%s'", vName( playerid ) ) ;
- Result = db_query( Vips , Query ) ;
- if ( !db_num_rows( Result ) )
- {
- if( IsPlayerAdmin( playerid ) )
- {
- if( sscanf ( params , "ud" , Player , Amount ) )
- return SendClientMessage( playerid , -1 ,""R"Usage: "O"/setvip [ "R"playerid ] [ amount ]" );
- P_DATA[ playerid ][ pVip ] = Amount ;
- format( V_Str , sizeof V_Str , ""O"RCON ADMINISTRATOR "R"%s "O" set %s "R"VIP Level "O"to "R"%d", vName( playerid ), vName( Player ), Amount );
- SendClientMessageToAll( -1 , V_Str );
- format( Query , sizeof Query, "INSERT INTO 'Vips' VALUES( '%s', '%d')", vName( Player ), Amount );
- db_free_result( db_query( Vips, Query ) );
- }
- else
- {
- P_DATA[ playerid ][ pVip ] = Amount ;
- format( V_Str , sizeof V_Str, ""O"Administrator "R"%s "O"update your VIP level to %d !", vName( playerid ) , Amount );
- SendClientMessage( playerid , -1 , V_Str );
- format( Query , sizeof Query , "UPDATE 'Vips' SET 'Vip' = '%d' WHERE 'Name' = '%s'", Amount, vName( Player ) ) ;
- db_free_result( db_query( Vips , Query ) );
- }
- }
- return 1;
- }
- //______________________________________________________________________________
- CMD:crash( playerid , params[ ] )
- {
- new
- Player,
- V_Str[ 256 ];
- if( !IsPlayerAdmin( playerid ) )
- return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have "R"RCON "O"For Use This Command" );
- if( IsPlayerAdmin( playerid ) )
- {
- if( sscanf ( params , "u" , Player ) )
- return SendClientMessage( playerid , -1 ,""R"Usage: "O"/crash [ "R"playerid ]" );
- SendClientMessage( Player , -1 , "%s is a good player " );
- format( V_Str , sizeof V_Str , ""R"%s "O"a luat "R"cRaSh "O"din cauza ca e retard xD" , vName( Player ) );
- SendClientMessageToAll( -1 , V_Str );
- }
- return 1;
- }
- //________________________________END OF SCRIPT_________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement