Guest User

aVip System Version 1.0

a guest
Apr 14th, 2013
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.30 KB | None | 0 0
  1. #if defined SYSTEM
  2. __________________________________________________________________________________________________________________________________
  3.  
  4.  
  5. _| _| _|_|_| _|_|_|
  6. _|_|_| _| _| _| _| _|
  7. _| _| _| _| _| _|_|_|
  8. _| _| _| _| _| _|
  9. _|_|_| _| _|_|_| _|
  10.  
  11.  
  12.  
  13. _|_|_| _|
  14. _| _| _| _|_|_| _|_|_|_| _|_| _|_|_| _|_|
  15. _|_| _| _| _|_| _| _|_|_|_| _| _| _|
  16. _| _| _| _|_| _| _| _| _| _|
  17. _|_|_| _|_|_| _|_|_| _|_| _|_|_| _| _| _|
  18. _|
  19. _|_|
  20.  
  21.  
  22. __________________________________________________________________________________________________________________________________
  23.  
  24. | aVip System Was Created On 12 of April |
  25.  
  26. | OVER 24 COMMANDS |
  27.  
  28. ______________________________
  29. | Contains : |
  30. | - Rcon Commands |
  31. | - Vip Level 3 Cmds |
  32. | - Vip Level 2 Cmds |
  33. | - Vip Level 1 Cmds |
  34. | - All Users Cmds |
  35. | |
  36. |____________________________|
  37. | - Rcon Commands |
  38. |____________________________|
  39. | /setvip |
  40. | /crash |
  41. |____________________________|
  42. | - Vip Level 3 Cmds |
  43. |____________________________|
  44. | /vgoto |
  45. | /vget |
  46. | /vunwarn |
  47. | /vwarn |
  48. |____________________________|
  49. | - Vip Level 2 Cmds |
  50. |____________________________|
  51. | /invitevw |
  52. | /vw |
  53. | /mycolor |
  54. | /vkick |
  55. | /rw |
  56. | /vcar |
  57. | /vannounce |
  58. | /vgod |
  59. | /god |
  60. |____________________________|
  61. | - Vip Level 1 Cmds |
  62. |____________________________|
  63. | /spawnme |
  64. | /vweapons |
  65. | /myweather |
  66. | /mytime |
  67. | /vsay |
  68. | /maxxammo |
  69. | /ltc[ 1 -10 ] |
  70. |____________________________|
  71. | - All Users Cmds |
  72. |____________________________|
  73. | /vips |
  74. | /vcmds |
  75. |____________________________|
  76.  
  77. ____________________________
  78. | - Thanks To This |
  79. |____________________________|
  80. | Alex "Y_LESS" Cole |
  81. | - Sscanf & Foreach |
  82. |____________________________|
  83. | DarkyTheAngel |
  84. | - Tester |
  85. |____________________________|
  86. | Zeex |
  87. | - COMMAND PROCESSOR |
  88. | Zcmd |
  89. |____________________________|
  90. | SQLite |
  91. | - SAMP |
  92. |____________________________|
  93. | Loadin / Save |
  94. | - Rimmon |
  95. |____________________________|
  96. | Created By |
  97. | - Allex |
  98. |____________________________|
  99.  
  100. Cotact me for details :
  101.  
  102.  
  103.  
  104. #endif
  105.  
  106. //______________________________________________________________________________
  107.  
  108. #include " a_samp "
  109. #include " sscanf2 "
  110. #include " Zcmd "
  111. #include " foreach "
  112.  
  113. #define fc%0(%1) forward%0(%1);\
  114. public%0(%1)
  115.  
  116. #define function%0(%1) forward%0(%1); public%0(%1)
  117.  
  118. //______________________________________________________________________________
  119.  
  120. stock bool:False = false;
  121.  
  122. new
  123. G_str[ 256 ];
  124.  
  125. //______________________________________________________________________________
  126.  
  127. enum P_ENUM_DATA
  128. {
  129. pId , pVip , bool: pLogged ,
  130. vGod , vCarGod , vSpec ,
  131. vSpecId , pPass , Warn ,
  132. pCar ,
  133. };
  134.  
  135. new
  136. P_DATA[ MAX_PLAYERS ][ P_ENUM_DATA ],
  137. DB:Vips;
  138.  
  139. //______________________________________________________________________________
  140.  
  141. #define O "{FF5500}"
  142.  
  143. #define R "{FF0000}"
  144.  
  145. #define W "{FFFFFF}"
  146.  
  147. #define ShowDialog ShowPlayerDialog
  148.  
  149. #define vRegister 1
  150.  
  151. #define vLogin 2
  152.  
  153. #define vReconnect 3
  154.  
  155. #define VIPS 4
  156.  
  157. #define VCMDS 5
  158.  
  159. #define fSCM(%0,%1,%2,%3)\
  160. do{\
  161. format( G_str , 256 , ( %2 ) , %3 );\
  162. SendClientMessage( ( %0 ) , ( %1 ) , G_str );\
  163. }\
  164. while( False )
  165.  
  166.  
  167. //______________________________________________________________________________
  168.  
  169. public OnFilterScriptInit()
  170. {
  171. print("\n_____________________________________________________ ");
  172. print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : V.I.P. S.Y.S.T.M. _______ ");
  173. print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : L.O.A.D.I.N.G. _______ ");
  174. print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : C.R.E.A.T.E.D B.Y. _______ ");
  175. print(" \n_______ S.Y.S.T.E.M. S.A.Y.S. : A.L.L.E.X _______ ");
  176. print("______________________________________________________\n ");
  177.  
  178. Vips = db_open( "Vips.db" ); // Numele La BD ! Poti schimba
  179. db_free_result( db_query( Vips, "CREATE TABLE IF NOT EXISTS 'Vips' \
  180. ( 'Name' varchar( 40 ),\
  181. 'Vip' INT )" ) ) ;
  182. return 1;
  183. }
  184.  
  185. //______________________________________________________________________________
  186.  
  187. public OnFilterScriptExit()
  188. {
  189. db_close( Vips );
  190. return 1;
  191. }
  192.  
  193. //______________________________________________________________________________
  194.  
  195. public OnPlayerConnect(playerid)
  196. {
  197. new
  198. Query[255],
  199. DBResult:result;
  200.  
  201. format(Query,255,"SELECT * FROM `Vips` WHERE `Name` = '%s'",vName(playerid));
  202. result = db_query(Vips,Query);
  203. if(!db_num_rows(result))
  204. {
  205. format(Query,255,"INSERT INTO `Vips` VALUES(`%s`,`%d`)",vName(playerid),P_DATA[playerid][pVip]);
  206. db_query(Vips,Query);
  207. }
  208. else
  209. {
  210. new
  211. Field[30];
  212.  
  213. db_get_field_assoc(result,"Vip",Field,30);
  214. P_DATA[playerid][pVip] = strval(Field);
  215. }
  216. return 1;
  217. }
  218.  
  219. //______________________________________________________________________________
  220.  
  221. public OnPlayerDisconnect(playerid, reason)
  222. {
  223. return 1;
  224. }
  225.  
  226. //______________________________________________________________________________
  227.  
  228. public OnPlayerSpawn(playerid)
  229. {
  230. new
  231. V_Str[ 110 ];
  232.  
  233. 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 ] );
  234. ShowDialog( playerid , vReconnect , DIALOG_STYLE_MSGBOX , ""O"VIP System", V_Str , "Ok" , "Cancel" );
  235.  
  236. return 1;
  237. }
  238.  
  239. //______________________________________________________________________________
  240.  
  241. public OnPlayerDeath(playerid, killerid, reason)
  242. {
  243. return 1;
  244. }
  245.  
  246. //______________________________________________________________________________
  247.  
  248. public OnPlayerText(playerid, text[])
  249. {
  250. text[ 0 ] = toupper( text[ 0 ] );
  251.  
  252.  
  253. if( P_DATA[ playerid ][ pVip ] >= 1 )
  254. {
  255. new
  256. str[200];
  257.  
  258. format( str, 200,"{00FFFF}[%d] {FF8800}[V.I.P] : {FFFFFF}%s", playerid , text[0] );
  259. SendPlayerMessageToAll( playerid , str ) ;
  260.  
  261. return 0;
  262. }
  263.  
  264. if( text[ 0 ] == '@' && P_DATA[ playerid ][ pVip ] >= 1 )
  265. {
  266. new
  267. vText[ 500 ];
  268.  
  269. format( vText, sizeof vText, ""O"V.I.P. Chat: "R"%s: "R"%s ", vName( playerid ) , text );
  270. SendClientMessageToAll( -1 , vText );
  271.  
  272. return 0;
  273. }
  274.  
  275. return 1;
  276. }
  277. //______________________________________________________________________________
  278.  
  279. stock vName( playerid )
  280. {
  281. new
  282. VipName[ 24 ];
  283.  
  284. GetPlayerName( playerid , VipName , 24 );
  285.  
  286. return VipName ;
  287. }
  288.  
  289. //______________________________________________________________________________
  290.  
  291. stock VCmds()
  292. {
  293. new vCmds[ 1100 ];
  294. vCmds[ 0 ]='\0';
  295.  
  296. strcat( vCmds , "\n"O"This VIP System Contains:", 1100 );
  297. strcat( vCmds , "\n"O"- Rcon Commands", 1100 );
  298. strcat( vCmds , "\n"O"- Vip Level 3 Cmds", 1100 );
  299. strcat( vCmds , "\n"O"- Vip Level 2 Cmds", 1100 );
  300. strcat( vCmds , "\n"O"- Vip Level 1 Cmds", 1100 );
  301. strcat( vCmds , "\n"O"- All users Cmds", 1100 );
  302. strcat( vCmds , "\n", 1100 );
  303. strcat( vCmds , "\n"O"- Rcon Commands:", 1100 );
  304. strcat( vCmds , "\n"O"\t/setvip", 1100 );
  305. strcat( vCmds , "\n"O"\t/crash", 1100 );
  306. strcat( vCmds , "\n", 1100 );
  307. strcat( vCmds , "\n"O"- Vip Level 3 Cmds", 1100 );
  308. strcat( vCmds , "\n"O"\t/vgoto", 1100 );
  309. strcat( vCmds , "\n"O"\t/vget", 1100 );
  310. strcat( vCmds , "\n"O"\t/vunwarn", 1100 );
  311. strcat( vCmds , "\n"O"\t/vwarn", 1100 );
  312. strcat( vCmds , "\n", 1100 );
  313. strcat( vCmds , "\n"O"- Vip Level 2 Cmds", 1100 );
  314. strcat( vCmds , "\n"O"\t/invitevw", 1100 );
  315. strcat( vCmds , "\n"O"\t/vw", 1100 );
  316. strcat( vCmds , "\n"O"\t/mycolor", 1100 );
  317. strcat( vCmds , "\n"O"\t/vkick", 1100 );
  318. strcat( vCmds , "\n"O"\t/rw", 1100 );
  319. strcat( vCmds , "\n"O"\t/vcar", 1100 );
  320. strcat( vCmds , "\n"O"\t/vannounce", 1100 );
  321. strcat( vCmds , "\n"O"\t/vgod", 1100 );
  322. strcat( vCmds , "\n"O"\t/god", 1100 );
  323. strcat( vCmds , "\n"O"\t/mycolor", 1100 );
  324. strcat( vCmds , "\n", 1100 );
  325. strcat( vCmds , "\n"O"- Vip Level 1 Cmds", 1100 );
  326. strcat( vCmds , "\n"O"\t/spawnme", 1100 );
  327. strcat( vCmds , "\n"O"\t/vweapons", 1100 );
  328. strcat( vCmds , "\n"O"\t/myweather", 1100 );
  329. strcat( vCmds , "\n"O"\t/mytime", 1100 );
  330. strcat( vCmds , "\n"O"\t/vsay", 1100 );
  331. strcat( vCmds , "\n"O"\t/maxxammo", 1100 );
  332. strcat( vCmds , "\n"O"\t/ltc[ 1-10 ]", 1100 );
  333. strcat( vCmds , "\n", 1100 );
  334. strcat( vCmds , "\n"O"- All users Cmds", 1100 );
  335. strcat( vCmds , "\n"O"\t/vips", 1100 );
  336. strcat( vCmds , "\n"O"\t/vcmds", 1100 );
  337.  
  338. return vCmds;
  339.  
  340. }
  341.  
  342. //______________________________________________________________________________
  343.  
  344. stock MaxAmmo( playerid )
  345. {
  346. new
  347. vArma ,
  348. vMunitie ;
  349.  
  350. foreach(new loc: Player)
  351. {
  352. GetPlayerWeaponData( playerid , loc , vArma , vMunitie );
  353. if( vArma > 0 && vArma < 19 || vArma > 22 && vArma < 48 )
  354. {
  355. GivePlayerWeapon( playerid , vArma , 99999999 );
  356. }
  357. }
  358.  
  359. return 1;
  360. }
  361.  
  362. //______________________________________________________________________________
  363.  
  364. forward CarSpawner(playerid,model);
  365. public CarSpawner(playerid,model)
  366. {
  367. if( IsPlayerInAnyVehicle( playerid )) SendClientMessage(playerid, -1, "You already have a car!");
  368. else
  369. {
  370. new
  371. Float:x,
  372. Float:y,
  373. Float:z,
  374. Float:angle;
  375.  
  376. GetPlayerPos( playerid, x, y, z);
  377. GetPlayerFacingAngle( playerid, angle );
  378. if( P_DATA[ playerid ][ pCar ] != -1) CarDeleter( P_DATA[ playerid ][ pCar ]);
  379. new vehicleid = CreateVehicle( model, x, y, z, angle, -1, -1, -1);
  380. PutPlayerInVehicle( playerid, vehicleid, 0);
  381. SetVehicleVirtualWorld( vehicleid, GetPlayerVirtualWorld( playerid ) );
  382. LinkVehicleToInterior( vehicleid, GetPlayerInterior( playerid ) );
  383. ChangeVehicleColor( vehicleid,0,7 );
  384. P_DATA[ playerid ][ pCar ] = vehicleid;
  385. }
  386. return 1;
  387. }
  388.  
  389. //______________________________________________________________________________
  390.  
  391. forward CarDeleter(vehicleid);
  392. public CarDeleter(vehicleid)
  393. {
  394. for(new i=0;i<MAX_PLAYERS;i++)
  395. {
  396. new
  397. Float:X,
  398. Float:Y,
  399. Float:Z;
  400.  
  401. if(IsPlayerInVehicle( i, vehicleid ) )
  402. {
  403. RemovePlayerFromVehicle(i);
  404. GetPlayerPos( i, X , Y , Z );
  405. SetPlayerPos( i, X , Y+3, Z );
  406. }
  407. SetVehicleParamsForPlayer(vehicleid,i,0,1);
  408. }
  409. SetTimerEx("VehRes",1500,0,"i",vehicleid);
  410. }
  411.  
  412. //______________________________________________________________________________
  413.  
  414. forward VehRes(vehicleid);
  415. public VehRes(vehicleid)
  416. {
  417. DestroyVehicle( vehicleid );
  418. }
  419.  
  420. //________________________________VIP Commands__________________________________
  421.  
  422. CMD:vips( playerid , params[ ] )
  423. {
  424. new
  425. Vipss,
  426. V_Str[ 2048 ]; // 2048 string l-am marit sa se vada mai multi VIPS Online
  427.  
  428. foreach(new i: Player)
  429. {
  430. if( IsPlayerConnected( i ) && P_DATA[ i ][ pVip ] > 0 )
  431. {
  432. format( V_Str , sizeof V_Str , "\n"O"V.I.P "R"%s - "O"Level %d", vName( i ), P_DATA[ i ][ pVip ] );
  433.  
  434. Vipss ++ ;
  435. }
  436. }
  437.  
  438. if( Vipss == 0 )
  439. {
  440. format( V_Str , sizeof V_Str , "\n"O"No VIP Members Online at this time" );
  441. }
  442.  
  443. return ShowDialog( playerid , VIPS , DIALOG_STYLE_MSGBOX, ""O"Online Vips", V_Str , "Ok" , "Cancel" );
  444. }
  445.  
  446. CMD:vcmds( playerid , params[ ] ) return ShowDialog( playerid , VCMDS , DIALOG_STYLE_MSGBOX , ""O"VIP Commands", VCmds( ) , "Ok", "Cancel" );
  447.  
  448. //________________________________VIP Level 1 Commands__________________________
  449.  
  450. CMD:vsay( playerid , params[ ] )
  451. {
  452. if( P_DATA[ playerid ][ pVip ] < 1 )
  453. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  454.  
  455. if( P_DATA[ playerid ][ pVip ] >= 1 )
  456. {
  457. new
  458. V_String[ 256 ];
  459.  
  460. if( sscanf( params , "s[256]", V_String ) )
  461. return SendClientMessage( playerid , -1, ""R"Usaage: "O"/vsay [ /text ] ");
  462.  
  463. format( V_String , sizeof V_String, ""O"%s "W"[ "O"V "W"]: "O"%s", vName( playerid ) , V_String );
  464. SendClientMessage( playerid, -1, V_String );
  465. }
  466.  
  467. return 1;
  468. }
  469.  
  470. //______________________________________________________________________________
  471.  
  472. CMD:maxxammo( playerid , params[ ] )
  473. {
  474. if( P_DATA[ playerid ][ pVip ] < 1 )
  475. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  476.  
  477. if( P_DATA[ playerid ][ pVip ] >= 1 )
  478. {
  479. MaxAmmo( playerid );
  480. }
  481.  
  482. return 1;
  483. }
  484.  
  485. //______________________________________________________________________________
  486.  
  487. CMD:mytime( playerid , params[ ] )
  488. {
  489. if( P_DATA[ playerid ][ pVip ] < 1 )
  490. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  491.  
  492. if( P_DATA[ playerid ][ pVip ] >= 1 )
  493. {
  494. new
  495. vTime ,
  496. V_Str[ 128 ];
  497.  
  498. if( sscanf ( params , "d", vTime ) )
  499. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/mytime [ time ]" );
  500.  
  501. if( vTime < 0 || vTime > 24 )
  502. return SendClientMessage( playerid , -1 , ""O"Only Beetween 1 - 24 Time" );
  503.  
  504. SetPlayerTime( playerid , vTime , 0 );
  505.  
  506. format( V_Str , sizeof V_Str , ""O"You have set your time to "R"%d" , vTime );
  507. SendClientMessage( playerid , -1 , V_Str );
  508.  
  509. }
  510.  
  511. return 1;
  512. }
  513.  
  514. //______________________________________________________________________________
  515.  
  516. CMD:myweather( playerid , params[ ] )
  517. {
  518. if( P_DATA[ playerid ][ pVip ] < 1 )
  519. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  520.  
  521. if( P_DATA[ playerid ][ pVip ] >= 1 )
  522. {
  523. new
  524. vWeat ,
  525. V_Str[ 128 ];
  526.  
  527. if( sscanf ( params , "d", vWeat ) )
  528. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/myweather [ time ]" );
  529.  
  530. if( vWeat < 0 || vWeat > 52 )
  531. return SendClientMessage( playerid , -1 , ""O"Only Beetween 1 - 52 Time" );
  532.  
  533. SetPlayerWeather( playerid , vWeat );
  534.  
  535. format( V_Str , sizeof V_Str , ""O"You have set your Weather to "R"%d" , vWeat );
  536. SendClientMessage( playerid , -1 , V_Str );
  537.  
  538. }
  539.  
  540. return 1;
  541. }
  542.  
  543. //______________________________________________________________________________
  544.  
  545. CMD:vweapons( playerid , params[ ] )
  546. {
  547. if( P_DATA[ playerid ][ pVip ] < 1 )
  548. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  549.  
  550. if( P_DATA[ playerid ][ pVip ] >= 1 )
  551. {
  552. GivePlayerWeapon( playerid ,28, 120); //Arma: Micro SMG || Gloante: 120
  553. GivePlayerWeapon( playerid, 31, 75); //Arma: M4 || Gloante: 75
  554. GivePlayerWeapon( playerid, 34, 15); //Arma: Sniper Rifle || Gloante: 15
  555. GivePlayerWeapon( playerid, 24, 110); //Arma: Desert Eagle || Gloante: 110
  556. GivePlayerWeapon( playerid, 26, 100); //Arma: Sawn-off Shotgun || Gloante: 100
  557. }
  558.  
  559. return 1;
  560. }
  561.  
  562. //______________________________________________________________________________
  563.  
  564. CMD:spawnme( playerid , params[ ] )
  565. {
  566. if( P_DATA[ playerid ][ pVip ] < 1 )
  567. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  568.  
  569. if( P_DATA[ playerid ][ pVip ] >= 1 )
  570. {
  571. SpawnPlayer( playerid );
  572.  
  573. SendClientMessage( playerid , -1 , ""O"Spawned With Succes ! ");
  574. }
  575.  
  576. return 1;
  577. }
  578.  
  579. //______________________________________________________________________________
  580.  
  581. CMD:ltc( playerid, params[ ] )
  582. {
  583. if( P_DATA[ playerid ][ pVip ] < 1 )
  584. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  585.  
  586. if( P_DATA[ playerid ][ pVip ] >= 1 )
  587. {
  588. CarSpawner(playerid, 562);
  589. AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
  590. AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
  591. AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
  592. AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
  593. AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
  594. AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
  595. AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
  596. AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
  597. AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
  598. AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
  599. AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
  600. AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
  601. AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
  602. AddVehicleComponent(GetPlayerVehicleID(playerid), 1086);
  603. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  604. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  605.  
  606. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
  607. }
  608. return 1;
  609. }
  610.  
  611. //______________________________________________________________________________
  612.  
  613.  
  614. CMD:ltc2( playerid, params[ ] )
  615. {
  616. if( P_DATA[ playerid ][ pVip ] < 1 )
  617. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  618.  
  619. if( P_DATA[ playerid ][ pVip ] >= 1 )
  620. {
  621. CarSpawner(playerid, 562);
  622. AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
  623. AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
  624. AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
  625. AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
  626. AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
  627. AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
  628. AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
  629. AddVehicleComponent(GetPlayerVehicleID(playerid), 1086);
  630. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  631. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  632. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),2);
  633. }
  634. return 1;
  635. }
  636.  
  637. //______________________________________________________________________________
  638.  
  639.  
  640. CMD:ltc3( playerid, params[ ] )
  641. {
  642. if( P_DATA[ playerid ][ pVip ] < 1 )
  643. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  644.  
  645. if( P_DATA[ playerid ][ pVip ] >= 1 )
  646. {
  647. CarSpawner(playerid, 562);
  648. AddVehicleComponent(GetPlayerVehicleID(playerid),1065);
  649. AddVehicleComponent(GetPlayerVehicleID(playerid),1067);
  650. AddVehicleComponent(GetPlayerVehicleID(playerid),1162);
  651. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  652. AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
  653. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
  654. }
  655. return 1;
  656. }
  657.  
  658. //______________________________________________________________________________
  659.  
  660. CMD:ltc4( playerid, params[ ] )
  661. {
  662. if( P_DATA[ playerid ][ pVip ] < 1 )
  663. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  664.  
  665. if( P_DATA[ playerid ][ pVip ] >= 1 )
  666. {
  667. CarSpawner(playerid, 562);
  668. AddVehicleComponent(GetPlayerVehicleID(playerid),1046);
  669. AddVehicleComponent(GetPlayerVehicleID(playerid),1049);
  670. AddVehicleComponent(GetPlayerVehicleID(playerid),1053);
  671. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  672. AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
  673. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
  674. }
  675. return 1;
  676. }
  677.  
  678. //______________________________________________________________________________
  679.  
  680. CMD:ltc5( playerid, params[ ] )
  681. {
  682. if( P_DATA[ playerid ][ pVip ] < 1 )
  683. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  684.  
  685. if( P_DATA[ playerid ][ pVip ] >= 1 )
  686. {
  687. CarSpawner(playerid, 562);
  688. AddVehicleComponent(GetPlayerVehicleID(playerid),1088);
  689. AddVehicleComponent(GetPlayerVehicleID(playerid),1092);
  690. AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
  691. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  692. AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
  693. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
  694. }
  695. return 1;
  696. }
  697.  
  698. //______________________________________________________________________________
  699.  
  700. CMD:ltc6( playerid, params[ ] )
  701. {
  702. if( P_DATA[ playerid ][ pVip ] < 1 )
  703. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  704.  
  705. CarSpawner(playerid, 562);
  706. AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
  707. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
  708. AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
  709. AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
  710. AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
  711. AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
  712. AddVehicleComponent(GetPlayerVehicleID(playerid), 1170);
  713. AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
  714. AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
  715. AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
  716. AddVehicleComponent(GetPlayerVehicleID(playerid), 1086);
  717. AddVehicleComponent(GetPlayerVehicleID(playerid), 1028);
  718. AddVehicleComponent(GetPlayerVehicleID(playerid), 1030);
  719. AddVehicleComponent(GetPlayerVehicleID(playerid), 1031);
  720. AddVehicleComponent(GetPlayerVehicleID(playerid), 1140);
  721. AddVehicleComponent(GetPlayerVehicleID(playerid), 1138);
  722. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0);
  723. return 1;
  724. }
  725.  
  726. //______________________________________________________________________________
  727.  
  728. CMD:ltc7( playerid, params[ ] )
  729. {
  730. if( P_DATA[ playerid ][ pVip ] < 1 )
  731. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  732.  
  733. if( P_DATA[ playerid ][ pVip ] >= 1 )
  734. {
  735. CarSpawner(playerid, 562);
  736. AddVehicleComponent(GetPlayerVehicleID(playerid),1034);
  737. AddVehicleComponent(GetPlayerVehicleID(playerid),1038);
  738. AddVehicleComponent(GetPlayerVehicleID(playerid),1147);
  739. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  740. AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
  741. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
  742. }
  743. return 1;
  744. }
  745.  
  746. //______________________________________________________________________________
  747.  
  748. CMD:ltc8( playerid, params[ ] )
  749. {
  750. if( P_DATA[ playerid ][ pVip ] < 1 )
  751. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  752.  
  753. if( P_DATA[ playerid ][ pVip ] >= 1 )
  754. {
  755. CarSpawner(playerid, 562);
  756. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1);
  757. AddVehicleComponent(GetPlayerVehicleID(playerid),1109);
  758. AddVehicleComponent(GetPlayerVehicleID(playerid),1115);
  759. AddVehicleComponent(GetPlayerVehicleID(playerid),1117);
  760. AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
  761. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  762. AddVehicleComponent(GetPlayerVehicleID(playerid),1087);
  763. AddVehicleComponent(GetPlayerVehicleID(playerid),1114);
  764. AddVehicleComponent(GetPlayerVehicleID(playerid),1081);
  765. AddVehicleComponent(GetPlayerVehicleID(playerid),1119);
  766. AddVehicleComponent(GetPlayerVehicleID(playerid),1121);
  767. }
  768. return 1;
  769. }
  770.  
  771. //______________________________________________________________________________
  772.  
  773. CMD:ltc9( playerid, params[ ] )
  774. {
  775. if( P_DATA[ playerid ][ pVip ] < 1 )
  776. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  777.  
  778. if( P_DATA[ playerid ][ pVip ] >= 1 )
  779. {
  780. CarSpawner(playerid, 562);
  781. AddVehicleComponent(GetPlayerVehicleID(playerid),1092);
  782. AddVehicleComponent(GetPlayerVehicleID(playerid),1166);
  783. AddVehicleComponent(GetPlayerVehicleID(playerid),1165);
  784. AddVehicleComponent(GetPlayerVehicleID(playerid),1090);
  785. AddVehicleComponent(GetPlayerVehicleID(playerid),1094);
  786. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  787. AddVehicleComponent(GetPlayerVehicleID(playerid),1087);
  788. AddVehicleComponent(GetPlayerVehicleID(playerid),1163);
  789. AddVehicleComponent(GetPlayerVehicleID(playerid),1091);
  790. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),2);
  791. }
  792. return 1;
  793. }
  794.  
  795. //______________________________________________________________________________
  796.  
  797. CMD:ltc10( playerid, params[ ] )
  798. {
  799. if( P_DATA[ playerid ][ pVip ] < 1 )
  800. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 1 For Use This Command" );
  801.  
  802. if( P_DATA[ playerid ][ pVip ] >= 1 )
  803. {
  804. CarSpawner(playerid, 562);
  805. AddVehicleComponent(GetPlayerVehicleID(playerid),1034);
  806. AddVehicleComponent(GetPlayerVehicleID(playerid),1038);
  807. AddVehicleComponent(GetPlayerVehicleID(playerid),1147);
  808. AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
  809. AddVehicleComponent(GetPlayerVehicleID(playerid),1073);
  810. ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0);
  811. }
  812. return 1;
  813. }
  814.  
  815. //________________________________VIP Level 2 Commands__________________________
  816.  
  817. CMD:god( playerid , params[ ] )
  818. {
  819. if( P_DATA[ playerid ][ pVip ] < 2 )
  820. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  821.  
  822. if( P_DATA[ playerid ][ pVip ] >= 2 )
  823. {
  824. if( P_DATA[ playerid ][ vGod ] == 0 )
  825. {
  826. P_DATA[ playerid ][ vGod ] = 1 ;
  827.  
  828. SetPlayerHealth( playerid , 999999 );
  829. SetPlayerArmour( playerid , 999999 );
  830. SendClientMessage( playerid , -1 , ""R"GODMODE "O"ON" );
  831.  
  832. new
  833. Query[ 256 ];
  834.  
  835. format( Query , sizeof Query , "UPDATE 'Vips' SET 'God' = '%d' WHERE 'Name' = '%s'", P_DATA[ playerid ][ vGod ], vName( playerid ) );
  836. db_free_result( db_query( Vips , Query ) ) ;
  837.  
  838. }
  839. else
  840. {
  841. P_DATA[ playerid ][ vGod ] = 0;
  842. SendClientMessage( playerid , -1 , ""R"GODMODE "O"OFF" );
  843.  
  844. SetPlayerHealth( playerid , 100 );
  845.  
  846. new
  847. Query[ 256 ];
  848.  
  849. format( Query , sizeof Query , "UPDATE 'Vips' SET 'God' = '%d' WHERE 'Name' = '%s'", P_DATA[ playerid ][ vGod ], vName( playerid ) );
  850. db_free_result( db_query( Vips , Query ) ) ;
  851.  
  852. }
  853. }
  854.  
  855. return 1;
  856. }
  857.  
  858. //______________________________________________________________________________
  859.  
  860. CMD:vgod( playerid , params[ ] )
  861. {
  862. new
  863. vehicleid;
  864.  
  865. vehicleid = GetPlayerVehicleID( playerid );
  866.  
  867. if( P_DATA[ playerid ][ pVip ] < 2 )
  868. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  869.  
  870. if( P_DATA[ playerid ][ pVip ] >= 2 )
  871. {
  872. if( P_DATA[ playerid ][ vCarGod ] == 0 )
  873. {
  874. P_DATA[ playerid ][ vCarGod ] = 1 ;
  875.  
  876. SetVehicleHealth( vehicleid , 999999 );
  877. SendClientMessage( playerid , -1 , ""R"GODMODECAR "O"ON" );
  878. }
  879. else
  880. {
  881. SendClientMessage( playerid , -1 , ""R"GODMODECAR "O"OFF" );
  882. P_DATA[ playerid ][ vCarGod ] = 0 ;
  883. SetVehicleHealth( vehicleid , 100 );
  884. }
  885. }
  886.  
  887. return 1;
  888. }
  889.  
  890. //______________________________________________________________________________
  891.  
  892. CMD:vannounce( playerid , params[ ] )
  893. {
  894. if( P_DATA[ playerid ][ pVip ] < 2 )
  895. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  896.  
  897. if( P_DATA[ playerid ][ pVip ] >= 2 )
  898. {
  899. if( sscanf ( params , "s[128]" , params[ 0 ] ) )
  900. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vannounce [ text ] " );
  901.  
  902. GameTextForAll( params[ 0 ], 6000 , 1 );
  903.  
  904. }
  905.  
  906. return 1;
  907. }
  908.  
  909. //______________________________________________________________________________
  910.  
  911. CMD:vcar( playerid , params[ ] )
  912. {
  913. if( P_DATA[ playerid ][ pVip ] < 2 )
  914. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  915.  
  916. if( P_DATA[ playerid ][ pVip ] >= 2 )
  917. {
  918. new
  919. Float: X ,
  920. Float: Y ,
  921. Float: Z ,
  922. Float: A ,
  923. C ;
  924.  
  925. if( P_DATA[ playerid ][ pVip ] < 2 )
  926. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  927.  
  928. if( IsPlayerInAnyVehicle( playerid ) )
  929. return SendClientMessage( playerid , -1 , ""R"ERROR: You Have A Vehicle !" );
  930.  
  931. GetPlayerPos( playerid , X , Y , Z );
  932. GetPlayerFacingAngle( playerid , A );
  933. C = CreateVehicle( playerid , X , Y, Z, A, 0, 0, 0 ); // Buffalo
  934. PutPlayerInVehicle( playerid , C, 0 );
  935. }
  936.  
  937. return 1;
  938. }
  939.  
  940. //______________________________________________________________________________
  941.  
  942. CMD:rw( playerid , params[ ] )
  943. {
  944. if( P_DATA[ playerid ][ pVip ] < 2 )
  945. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  946.  
  947. if( P_DATA[ playerid ][ pVip ] >= 2 )
  948. {
  949. GivePlayerWeapon( playerid, 4, 1); //Knife
  950. GivePlayerWeapon( playerid, 28, 1000); // Micro - SMG
  951. GivePlayerWeapon( playerid, 26, 100); // Sawn-off Shotgun
  952. GivePlayerWeapon( playerid, 22, 500); // 9mm Pistol
  953. }
  954.  
  955. return 1 ;
  956. }
  957.  
  958. //______________________________________________________________________________
  959.  
  960. CMD:vkick( playerid , params[ ] )
  961. {
  962. if( P_DATA[ playerid ][ pVip ] < 2 )
  963. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  964.  
  965. if( !IsPlayerConnected( playerid ) )
  966. return SendClientMessage( playerid , -1 , ""O"Player Not Connected" );
  967.  
  968. if( P_DATA[ playerid ][ pVip ] >= 2 )
  969. {
  970. new
  971. vKicked,
  972. vReason[ 129 ],
  973. V_Str[ 256 ];
  974.  
  975. if( sscanf( params, "us[128]", vKicked, vReason ) )
  976. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vkick [ playerid ] [ reason ]" );
  977.  
  978. if( !strlen( vReason ) )
  979. {
  980. format( V_Str , sizeof V_Str , ""R"%s "O"has been kicked by "R"%s "O"[ no reason give ] ", vName( vKicked ), vName( playerid ) );
  981. SendClientMessageToAll( -1 , V_Str );
  982.  
  983. Kick( vKicked );
  984. }
  985. else
  986. {
  987. format( V_Str , sizeof V_Str , ""R"%s "O"has been kicked by "R"%s "O"[ Reason: %s ] ", vName( vKicked ), vName( playerid ), vReason );
  988. SendClientMessageToAll( -1 , V_Str );
  989.  
  990. Kick( vKicked );
  991. }
  992. }
  993.  
  994. return 1;
  995. }
  996.  
  997. //______________________________________________________________________________
  998.  
  999. CMD:mycolor( playerid, params[ ] )
  1000. {
  1001.  
  1002. if( P_DATA[ playerid ][ pVip ] < 2 )
  1003. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  1004.  
  1005. if ( P_DATA[ playerid ][ pVip ] >= 2 )
  1006. {
  1007. new Culoare,
  1008. Colour[ 24 ];
  1009.  
  1010. if ( sscanf( params, "d", Culoare ) )
  1011. 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" );
  1012.  
  1013. if ( Culoare > 8 )
  1014. return SendClientMessage( playerid, -1, "O""Colours: 0 = Black | 1 = White | 2 = Red | 3 = Orange | 4 = Yellow | 5 = Green | 6 = Blue | 7 = Purple | 8 = Brown" );
  1015.  
  1016. switch ( Culoare )
  1017. {
  1018. case 0:
  1019. {
  1020. SetPlayerColor( playerid, 0x000000AA ); Colour = "Black";
  1021. }
  1022. case 1:
  1023. {
  1024. SetPlayerColor( playerid, 0xFFFFFFAA ); Colour = "White";
  1025. }
  1026. case 2:
  1027. {
  1028. SetPlayerColor( playerid, 0xE60000AA ); Colour = "Red";
  1029. }
  1030. case 3:
  1031. {
  1032. SetPlayerColor( playerid, 0xFF5500AA ); Colour = "Orange";
  1033. }
  1034. case 4:
  1035. {
  1036. SetPlayerColor( playerid, 0xFFFF00AA ); Colour = "Yellow";
  1037. }
  1038. case 5:
  1039. {
  1040. SetPlayerColor( playerid, 0x00FF00AA ); Colour = "Green"; }
  1041. case 6:
  1042. {
  1043. SetPlayerColor( playerid, 0x0000BBAA ); Colour = "Blue"; }
  1044. case 7:
  1045. {
  1046. SetPlayerColor( playerid, 0x800080AA ); Colour = "Purple";
  1047. }
  1048. case 8:
  1049. {
  1050. SetPlayerColor( playerid, 0xA52A2AAA ); Colour = "Brown";
  1051. }
  1052. }
  1053. }
  1054.  
  1055. return 1;
  1056. }
  1057.  
  1058. //______________________________________________________________________________
  1059.  
  1060. CMD:vw( playerid , params[ ] )
  1061. {
  1062. if( P_DATA[ playerid ][ pVip ] < 2 )
  1063. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  1064.  
  1065. if ( P_DATA[ playerid ][ pVip ] >= 2 )
  1066. {
  1067. new
  1068. VW,
  1069. vString[ 200 ];
  1070.  
  1071. if( sscanf ( params , "i" , VW ) )
  1072. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vw [ world ]" );
  1073.  
  1074. if( VW > 999999 )
  1075. return SendClientMessage( playerid , -1 , ""O"Invalid Virtual World" );
  1076.  
  1077. if( IsPlayerInAnyVehicle( playerid ))
  1078. {
  1079. SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ) , VW );
  1080. SetPlayerVirtualWorld( playerid , VW );
  1081.  
  1082. format( vString , sizeof vString , ""O"You Have Set Your World To "R"%d" , VW );
  1083. SendClientMessageToAll( -1 , vString );
  1084. }
  1085. else
  1086. {
  1087. SetPlayerVirtualWorld( playerid , VW );
  1088.  
  1089. format( vString , sizeof vString , ""O"You Have Set Your World To "R"%d" , VW );
  1090. SendClientMessageToAll( -1 , vString );
  1091. }
  1092. }
  1093.  
  1094. return 1 ;
  1095. }
  1096.  
  1097. //______________________________________________________________________________
  1098.  
  1099. CMD:invitevw( playerid , params[ ] )
  1100. {
  1101. if( P_DATA[ playerid ][ pVip ] < 2 )
  1102. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 2 For Use This Command" );
  1103.  
  1104. if ( P_DATA[ playerid ][ pVip ] >= 2 )
  1105. {
  1106. new
  1107. Player,
  1108. vwString[ 300 ];
  1109.  
  1110. if( sscanf ( params , "u", Player ) )
  1111. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/invitevw [ playerid ]" );
  1112.  
  1113. if( !IsPlayerConnected( Player ) )
  1114. return SendClientMessage( playerid, -1 , ""R"Player not connected!");
  1115.  
  1116. format( vwString , sizeof vwString , ""O"%s ( %d ) invited you to enter in %d "O"Virtual World ( "R"VW "O") " , vName( playerid ) , playerid , GetPlayerVirtualWorld( playerid ) );
  1117. SendClientMessageToAll( -1 , vwString );
  1118.  
  1119. 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 ) );
  1120. SendClientMessageToAll( -1 , vwString );
  1121. }
  1122.  
  1123. return 1;
  1124. }
  1125.  
  1126. //________________________________VIP Level 3 Commands__________________________
  1127.  
  1128. CMD:vwarn( playerid , params[ ] )
  1129. {
  1130. if( P_DATA[ playerid ][ pVip ] < 3 )
  1131. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
  1132.  
  1133. if ( P_DATA[ playerid ][ pVip ] >= 3 )
  1134. {
  1135. new
  1136. Player,
  1137. V_Str[ 256 ],
  1138. vReason[ 126 ];
  1139.  
  1140. if( sscanf( params , "us[126]", Player, vReason ) )
  1141. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vwarn [ playerid ] [ reason ]" );
  1142.  
  1143. if( P_DATA[ playerid ][ pVip ] > P_DATA[ playerid ][ pVip ] )
  1144. return SendClientMessage( playerid , -1 , ""O"You can't use this command on a VIP" );
  1145.  
  1146. if( !IsPlayerConnected( Player ) )
  1147. return SendClientMessage( playerid , -1 , ""R"Error: Player Not Connected" );
  1148.  
  1149. P_DATA[ Player ][ Warn ] ++ ;
  1150.  
  1151. format( V_Str , sizeof V_Str , ""R"%s "O"got a warn from "R"VIP %s ! "O"[ Reason : %s ] ", vName( Player ) , vName( playerid ) , vReason );
  1152. SendClientMessageToAll( -1 , V_Str );
  1153. }
  1154.  
  1155. return 1;
  1156. }
  1157.  
  1158. //______________________________________________________________________________
  1159.  
  1160. CMD:vunwarn( playerid , params[ ] )
  1161. {
  1162. if( P_DATA[ playerid ][ pVip ] < 3 )
  1163. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
  1164.  
  1165. if ( P_DATA[ playerid ][ pVip ] >= 3 )
  1166. {
  1167. new
  1168. Player,
  1169. V_Str[ 256 ],
  1170. vReason[ 126 ];
  1171.  
  1172. if( sscanf( params , "us[126]", Player, vReason ) )
  1173. return SendClientMessage( playerid , -1 , ""R"Usage: "O"/vumwarn [ playerid ] [ reason ]" );
  1174.  
  1175. if( P_DATA[ playerid ][ pVip ] > P_DATA[ playerid ][ pVip ] )
  1176. return SendClientMessage( playerid , -1 , ""O"You can't use this command on a VIP" );
  1177.  
  1178. if( !IsPlayerConnected( Player ) )
  1179. return SendClientMessage( playerid , -1 , ""R"Error: Player Not Connected" );
  1180.  
  1181. P_DATA[ Player ][ Warn ] -- ;
  1182.  
  1183. format( V_Str , sizeof V_Str , ""R"%s "O"got a unwarn from "R"VIP %s ! "O"[ Reason : %s ] ", vName( Player ) , vName( playerid ) , vReason );
  1184. SendClientMessageToAll( -1 , V_Str );
  1185. }
  1186.  
  1187. return 1;
  1188. }
  1189.  
  1190. //______________________________________________________________________________
  1191.  
  1192. CMD:vgoto( playerid , params[ ] )
  1193. {
  1194. new
  1195. Player,
  1196. V_Str[ 128 ],
  1197. Float:x,
  1198. Float:y,
  1199. Float:z;
  1200.  
  1201. if( P_DATA[ playerid ][ pVip ] < 3 )
  1202. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
  1203.  
  1204. if( !IsPlayerConnected( playerid ) )
  1205. return SendClientMessage( playerid , -1 , ""O"Player Not Connected" );
  1206.  
  1207.  
  1208. if ( P_DATA[ playerid ][ pVip ] >= 3 )
  1209. {
  1210. if ( sscanf( params, "u", Player ) )
  1211. return SendClientMessage( playerid, -1, ""R"Usage: "O"/vipgoto [ playerid ]" );
  1212.  
  1213. GetPlayerPos( Player , x , y , z );
  1214. SetPlayerInterior( playerid , GetPlayerInterior( Player ) );
  1215. SetPlayerVirtualWorld( playerid , GetPlayerVirtualWorld( Player ) );
  1216. if ( IsPlayerConnected( Player ) && Player != INVALID_PLAYER_ID && Player != playerid )
  1217. {
  1218. if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
  1219. {
  1220. SetVehiclePos( GetPlayerVehicleID( playerid ) , x+3 , y , z );
  1221. LinkVehicleToInterior( GetPlayerVehicleID( playerid ), GetPlayerInterior( Player ) );
  1222. SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), GetPlayerVirtualWorld( Player ) );
  1223. format( V_Str , sizeof V_Str , ""O"You have teleported to "R"%s's "O"location!" , vName( Player ) );
  1224. SendClientMessage( playerid ,-1 ,V_Str );
  1225. 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 ] );
  1226. SendClientMessage( Player, -1, V_Str );
  1227. }
  1228. else
  1229. {
  1230. SetPlayerPos( playerid , x+2 , y , z );
  1231. 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 ] );
  1232. SendClientMessage( Player, -1, V_Str );
  1233. format( V_Str , sizeof V_Str , ""O"You have teleported to "R"%s's "O"location!" , vName( Player ) );
  1234. SendClientMessage( playerid ,-1 ,V_Str );
  1235. }
  1236. }
  1237. }
  1238.  
  1239. return 1;
  1240. }
  1241.  
  1242. //______________________________________________________________________________
  1243.  
  1244. CMD:vget( playerid, params[ ] )
  1245. {
  1246. if( P_DATA[ playerid ][ pVip ] < 3 )
  1247. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have VIP Level 3 For Use This Command" );
  1248.  
  1249. if( !IsPlayerConnected( playerid ) )
  1250. return SendClientMessage( playerid , -1 , ""O"Player Not Connected" );
  1251.  
  1252.  
  1253. if ( P_DATA[ playerid ][ pVip ] >= 3 )
  1254. {
  1255.  
  1256. new
  1257. Player,
  1258. Float:x,
  1259. Float:y,
  1260. Float:z ;
  1261.  
  1262. if ( sscanf( params, "u", Player ) )
  1263. return SendClientMessage( playerid, -1, ""O"USAGE: "R"/get [ PlayerID ]" );
  1264.  
  1265. if ( !IsPlayerConnected( Player ) )
  1266. return SendClientMessage( playerid, -1, ""R"Error: Player not connected!");
  1267.  
  1268. if ( Player == playerid )
  1269. return SendClientMessage( playerid, -1, ""O"You can't teleport to yourself !" );
  1270.  
  1271. GetPlayerPos( playerid, x, y, z );
  1272. SetPlayerInterior( Player, GetPlayerInterior( playerid ) );
  1273. SetPlayerVirtualWorld( Player, GetPlayerVirtualWorld( playerid ) );
  1274.  
  1275. if ( GetPlayerState( Player ) == 2 )
  1276. {
  1277. new VehicleID = GetPlayerVehicleID( Player );
  1278. SetVehiclePos( VehicleID, x+3, y, z );
  1279. LinkVehicleToInterior( VehicleID, GetPlayerInterior( playerid ) );
  1280. SetVehicleVirtualWorld( GetPlayerVehicleID( Player ), GetPlayerVirtualWorld( playerid ) );
  1281. }
  1282. else SetPlayerPos( Player, x+2, y, z );
  1283. fSCM( Player, -1, "You have been teleported to \"%s's\" location", vName( playerid ) );
  1284. fSCM( playerid, -1, "You have teleported \"%s\" to your location", vName( Player ) );
  1285. }
  1286.  
  1287. return 1;
  1288. }
  1289.  
  1290. //_____________________________________RCON COMMANDS____________________________
  1291.  
  1292. CMD:setvip( playerid , params[ ] )
  1293. {
  1294. new
  1295. Player,
  1296. Amount,
  1297. V_Str[ 256 ],
  1298. Query[ 256 ],
  1299. DBResult:Result;
  1300.  
  1301. if( !IsPlayerAdmin( playerid ) )
  1302. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have "R"RCON "O"For Use This Command" );
  1303.  
  1304. if( Amount > 3 )
  1305. return SendClientMessage( playerid , -1, ""R"ERROR: "O"This VIP Level Doesn't exists" );
  1306.  
  1307. format( Query , sizeof Query , "SELECT * FROM 'Vips' WHERE 'Name' = '%s'", vName( playerid ) ) ;
  1308. Result = db_query( Vips , Query ) ;
  1309.  
  1310. if ( !db_num_rows( Result ) )
  1311. {
  1312. if( IsPlayerAdmin( playerid ) )
  1313. {
  1314.  
  1315. if( sscanf ( params , "ud" , Player , Amount ) )
  1316. return SendClientMessage( playerid , -1 ,""R"Usage: "O"/setvip [ "R"playerid ] [ amount ]" );
  1317.  
  1318. P_DATA[ playerid ][ pVip ] = Amount ;
  1319.  
  1320. 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 );
  1321. SendClientMessageToAll( -1 , V_Str );
  1322.  
  1323. format( Query , sizeof Query, "INSERT INTO 'Vips' VALUES( '%s', '%d')", vName( Player ), Amount );
  1324. db_free_result( db_query( Vips, Query ) );
  1325. }
  1326. else
  1327. {
  1328. P_DATA[ playerid ][ pVip ] = Amount ;
  1329.  
  1330. format( V_Str , sizeof V_Str, ""O"Administrator "R"%s "O"update your VIP level to %d !", vName( playerid ) , Amount );
  1331. SendClientMessage( playerid , -1 , V_Str );
  1332.  
  1333. format( Query , sizeof Query , "UPDATE 'Vips' SET 'Vip' = '%d' WHERE 'Name' = '%s'", Amount, vName( Player ) ) ;
  1334. db_free_result( db_query( Vips , Query ) );
  1335. }
  1336. }
  1337. return 1;
  1338. }
  1339.  
  1340. //______________________________________________________________________________
  1341.  
  1342. CMD:crash( playerid , params[ ] )
  1343. {
  1344. new
  1345. Player,
  1346. V_Str[ 256 ];
  1347.  
  1348. if( !IsPlayerAdmin( playerid ) )
  1349. return SendClientMessage( playerid , -1, ""R"ERROR: "O"You Don't Have "R"RCON "O"For Use This Command" );
  1350.  
  1351. if( IsPlayerAdmin( playerid ) )
  1352. {
  1353. if( sscanf ( params , "u" , Player ) )
  1354. return SendClientMessage( playerid , -1 ,""R"Usage: "O"/crash [ "R"playerid ]" );
  1355.  
  1356. SendClientMessage( Player , -1 , "%s is a good player " );
  1357.  
  1358. format( V_Str , sizeof V_Str , ""R"%s "O"a luat "R"cRaSh "O"din cauza ca e retard xD" , vName( Player ) );
  1359. SendClientMessageToAll( -1 , V_Str );
  1360. }
  1361.  
  1362. return 1;
  1363. }
  1364.  
  1365. //________________________________END OF SCRIPT_________________________________
Advertisement
Add Comment
Please, Sign In to add comment