Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //====================================FS====================================//
- //====================================BY====================================//
- //==================================DJ_DANY=================================//
- #include <a_samp>
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_BRIGHTRED 0xFF0000AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x3A47DEFF
- #define COLOR_TAN 0xBDB76BAA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_BLACK 0x00000000
- #define COLOR_DARKGREY 0x696969FF
- #include "../include/gl_common.inc"
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" FS DANY");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" FS DANY");
- print("----------------------------------\n");
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- new idx;
- cmd = strtok(cmdtext, idx);
- //=======================PRIMA VERSIUNE=================================//
- if (strcmp("/bani", cmdtext, true, 10) == 0)
- {
- new money = randomEx(0,1000);
- new string[128];
- format(string, sizeof(string),"Ai primit %d$.",money);
- SendClientMessage(playerid,COLOR_GREEN,string);
- GivePlayerMoney(playerid,money);
- return 1;
- }
- if (strcmp("/viata", cmdtext, true, 10) == 0)
- {
- new heal = randomEx(0,100);
- new string[128];
- format(string, sizeof(string),"Ai primit %d viata.",heal);
- SendClientMessage(playerid,COLOR_GREEN,string);
- SetPlayerHealth(playerid,heal);
- return 1;
- }
- if (strcmp("/armura", cmdtext, true, 10) == 0)
- {
- new armura = randomEx(0,100);
- new string[128];
- format(string, sizeof(string),"Ai primit %d armura.",armura);
- SendClientMessage(playerid,COLOR_GREEN,string);
- SetPlayerArmour(playerid,armura);
- return 1;
- }
- if (strcmp("/arme", cmdtext, true, 10) == 0)
- {
- new arma = randomEx(0,46);
- new cantitatea = randomEx(1,500);
- new string[128];
- format(string, sizeof(string),"Ai primit arma cu id %d .",arma,cantitatea);
- SendClientMessage(playerid,COLOR_GREEN,string);
- GivePlayerWeapon(playerid,arma,cantitatea);
- return 1;
- }
- //========================VERSIUNEA 2==================================//
- if (strcmp("/skin", cmdtext, true, 10) == 0)
- {
- new skin = randomEx(0,299);
- new string[128];
- format(string, sizeof(string),"Ai primit skinul cu id %d .",skin);
- SendClientMessage(playerid,COLOR_GREEN,string);
- SetPlayerSkin(playerid,skin);
- return 1;
- }
- if (strcmp("/culoare", cmdtext, true, 10) == 0)
- {
- new culoare = randomEx(0,255);
- new string[128];
- format(string, sizeof(string),"Ai primit culoarea cu id %d .",culoare);
- SendClientMessage(playerid,COLOR_GREEN,string);
- SetPlayerColor(playerid,culoare);
- return 1;
- }
- if (strcmp("/vremea", cmdtext, true, 10) == 0)
- {
- new vremea = randomEx(0,50);
- new string[128];
- format(string, sizeof(string),"Vremea s-a schimbat in id %d .",vremea);
- SendClientMessage(playerid,COLOR_GREEN,string);
- SetWeather(vremea);
- return 1;
- }
- if (strcmp("/timpul", cmdtext, true, 10) == 0)
- {
- new ora = randomEx(0,23);
- new string[128];
- format(string, sizeof(string),"Este ora: %d .",ora);
- SendClientMessage(playerid,COLOR_GREEN,string);
- SetWorldTime(ora);
- return 1;
- }
- //===========VERSIONEA 3====================================================//
- if(strcmp( cmd, "/masina", true ) == 0 )
- {
- new masina = randomEx(400,611);
- new Float:X, Float:Y, Float:Z;
- new string[128];
- GetPlayerPos( playerid, X, Y, Z );
- new culoare1=randomEx(0,126);
- new culoare2=randomEx(0,126);
- CreateVehicle( masina, X+2, Y+2, Z, 0, culoare1, culoare2, -1 );
- format(string,sizeof(string),"Masina creata, id: %d,culoare 1: %d,culoare 2: %d",masina,culoare1,culoare2);
- SendClientMessage(playerid,0xAAAAAAAA,string);
- return 1;
- }
- if (strcmp("/interiorli", cmdtext, true, 10) == 0)
- {
- new interior = randomEx(0,18);
- new string[128];
- format(string, sizeof(string),"A fost selectat interiorul cu id: %d .",interior);
- SendClientMessage(playerid,COLOR_GREEN,string);
- SetPlayerInterior(playerid,interior);
- return 1;
- }
- if(strcmp( cmd, "/sus", true ) == 0 )
- {
- new sus = randomEx(0,5000);
- new Float:X, Float:Y, Float:Z;
- new string[128];
- GetPlayerPos( playerid, X, Y, Z );
- SetPlayerPos(playerid,X,Y,Z+sus);
- GivePlayerWeapon(playerid,46,1);
- format(string,sizeof(string),"Ai urcat la : %d metri.",sus);
- SendClientMessage(playerid,0xAAAAAAAA,string);
- return 1;
- }
- if(strcmp( cmd, "/jos", true ) == 0 )
- {
- new jos = randomEx(-10,0);
- new Float:X, Float:Y, Float:Z;
- new string[128];
- GetPlayerPos( playerid, X, Y, Z );
- SetPlayerPos(playerid,X,Y,Z+jos);
- format(string,sizeof(string),"Ai coborat la : %d metri.",jos);
- SendClientMessage(playerid,0xAAAAAAAA,string);
- return 1;
- }
- return 0;
- }
- stock randomEx(minnum = cellmin , maxnum = cellmax) return random(maxnum - minnum +1) + minnum;
Advertisement
Add Comment
Please, Sign In to add comment