-
Posts
436 -
Joined
-
Last visited
-
Days Won
7
Everything posted by ASGOOD
-
as vrea sa vad si eu asta.
-
Sa vedem si codu
-
new TimerRainbow[MAX_PLAYERS];//definim timer-ul forward RainbowTimer(playerid);//cream forward-ul pentru viitorul timer public RainbowTimer(playerid) { // public-ul new carcol[2];//Definim 2 variabile (scurtaturi) new carid = GetPlayerVehicleID(playerid);//inca o scurtatura carcol[0] = randomEx(165, 255), carcol[1] = randomEx(165, 255);//Conferim valorile scurtaturilor ChangeVehicleColor(carid, carcol[0], carcol[1]);//Schimbam culoarea vehiculului return 1; } CMD:rainbowon(playerid, params[]){//Cream comanda new ptime;//definim o variabila pe care sa o cautam cu sscanf cand tasteaza comanda if(TimerRainbow[playerid] != -1)return SendClientMessage(playerid, 0xFFFFFF77, "Ai pornit deja rainbow-ul");//Verificam daca are pornit rainbow-ul if(sscanf(params, "i", ptime))return SendClientMessage(playerid, 0xFFFFFF77, "Use: /rainbowon <time in seconds>");//verificam daca scrie comanda corect if(ptime < 1 || ptime > 10)return SendClientMessage(playerid, 0xFFFFFF77, "Poti pune doar intre 1 si 10 secunde.");//o interogatie sa nu puna mai putin de 1s si nici mai mult de 10s if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid, 0xFFFFFF77, "Nu esti intr-un vehicul.");//Verificam daca este intr-un vehicul TimerRainbow[playerid] = SetTimerEx("RainbowTimer", ptime*1000, true, "i", playerid);//Setam timer-ul SendClientMessage(playerid, 0xFFFF00FF, "Ai pornit rainbow-ul.");//Ii trimitem un mesaj return 1;//finish } CMD:rainbowoff(playerid, params[]){//creem comanda if(TimerRainbow[playerid] == -1)return SendClientMessage(playerid, 0xFFFFFF77, "Nu ai pornit rainbow-ul"); //Verificam daca-l are pornit KillTimer(TimerRainbow[playerid]);//Oprim timer-ul SendClientMessage(playerid, 0xFFFF00FF, "Ai oprit rainbow-ul.");//trimitem mesaj-ul return 1;//finish } public OnPlayerExitVehicle(playerid, vehicleid) {//Cand player-ul iese din vehicul if(TimerRainbow[playerid] != -1){//Verificam daca are rainbow-ul pornit KillTimer(TimerRainbow[playerid]); //Daca il are, il oprim } return 1; } Scz @AlexxAdv, multi nu au y_timers sau nu stiu sa-l foloseasca :))
-
bafta
-
if(seconds != 1800) return SCM(i, -1, "Nu ai jucat dest-ul sa iei ora jucata."); // mesaj cum ca daca n-are 1800 de secunde(30 de minute jucate), nu i da payday-ul. if(seconds == 1800) // daca ai 30 de minute jucate iei payday-ul. cea mai proasta verificare :))) if(seconds < 1800) return SCM(i, -1, "Nu ai jucat dest-ul sa iei ora jucata."); // mesaj cum ca daca n-are 1800 de secunde(30 de minute jucate), nu i da payday-ul. if(seconds >= 1800) // daca ai 30 de minute jucate iei payday-ul.
-
nice
-
misto
-
Foloseste-te de AttachTrailerToVehicle(trailerid, vehicleid);
-
nu ne omoram pentru ca "dece" se scrie "de ce"
-
Misto.
-
// adaugam asta sub include-uri new TimerRainBow[MAX_PLAYERS];//creem o variabila pentru un player new CarRainBow[MAX_PLAYERS]; // creem o variabila in care stocam id-ul masinii cand intra new SavedC1[MAX_PLAYERS], SavedC2[MAX_PLAYERS];//creem variabila in care o sa stocam culorile pe care le va avea masina CMD:rainbowspeed(playerid, params[]){ // creem comanda if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");// daca nu e logat o sa-i apara asta if(TimerRainBow[playerid] != -1)return SendClientMessage(playerid, COLOR_LIGHTRED, "The rainbow is already activated.");// verifica daca are timer-ul pornit if(PlayerInfo[playerid][pVipAccount] == 0 && PlayerInfo[playerid][pAdmin] == 0) return 1;//daca nu e admin si nici VIP nu o sa actioneza comanda //if(CarInfo[carid][cVip] < 1) return SendClientMessage(playerid, COLOR_WHITE,"(Error): This vehicle is not VIP."); asta e verificare data are vip pe masina :)) CarRainBow[playerid] = GetPlayerVehicleID(playerid);//Ii conferim valoarea variabileli GetVehicleColor(CarRainBow[playerid], SavedC1[playerid], SavedC2[playerid]);//Salvam culorile if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, "(RainBow): Nu esti intr-un vehicul!");//Verifica daca e in vehicul TimerRainBow[playerid] = SetTimerEx("RainbowChange", 1000, true, "i", playerid);//Setezi timer-ul new string[64];//creezi o variabila de tip-ul string format(string, sizeof(string), "(VIPBot): %s a pornit RainBow-ul.",GetName(playerid));// Formatezi text-ul ABroadCast(COLOR_ADMCHAT, string,1);//Trimiti catre admini (inutil) return 1;// returnam ca sa nu luam warning } // Acum ne trebuie comana /rainbowspeedoff. CMD:rainbowspeedoff(playerid, params[]){//Cream comanda if(TimerRainBow[playerid] == -1) return SendClientMessage(playerid, COLOR_LIGHTRED, "You don`t have the rainbow activated.");//verificam daca e pornit rainbow-ul if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");//verificam daca e logat KillTimer(TimerRainBow[playerid]);//Oprim rainbow-ul SCM(playerid, COLOR_YELLOW, "(RainBow): Ai oprit rainbow!");//Trimitem acest mesaj return 1;//returnam ca sa nu luam warning } // avem nevoie de aceasta functie pentru a da culoare random 0-255. function RainbowChange(playerid){//definim timer-ul new c1 = random(255), c2= random (255);//creem niste variabile random cu culori(nush cum sa explic asta :))) ChangeVehicleColor(GetPlayerVehicleID(playerid), c1, c2);//Schimbam culoarea vehiculului return 1;//returnam } public OnPlayerExitVehicle(playerid, vehicleid){ if(vehicleid == CarRainBow[playerid]){ KillTimer(TimerRainBow[playerid]);//Oprim rainbow-ul ChangeVehicleColor(vehicleid, SavedC1[playerid], SavedC2[playerid]);//Schimbam culoarea vehiculului } return 1; } Aici aveti un sistem care merge :))
-
Daca tot vrei sa o dai pe engleza e `system`
-
Discord: ASGOOD#8460, add daca platesti
-
Clar, ce cauti pe aici? Inca imi esti dator cu 25 psf.
-
6 pauze de 2 luni = 1 an, clar ????????
-
ASGOOD#8460 discord pm
-
Ba da, e obligatoriu, dar probabil e incepator
ABOUT LEAKS COMMUNITY
LEAKS.RO is a resource community where aspiring webmasters can share content and receive support for a wide variety of software platforms — no license required.