-
Posts
1,494 -
Joined
-
Last visited
-
Days Won
57
Community Answers
-
kwnx's post in Problema Gamemode Ainox was marked as the answer
Sterge
if(GetPlayerAnimationIndex(playerid) != 0)return SCM(playerid, -1, "{ccff99}Foloseste mai intai /stopanim !");
-
kwnx's post in Cum pot pune animatie? was marked as the answer
https://wiki.sa-mp.com/wiki/ApplyAnimation
Vezi ca ai acolo si un parametru time.
-
kwnx's post in Problema comanda /vre si /spawncar (cmd for admins) was marked as the answer
new Spawned[MAX_VEHICLES]; Apoi la /spawncar pui
Spawned[car] = 1; dupa care
CMD:vrethis(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_DCHAT, "Nu poti folosi nicio comanda pentru ca nu esti logat."); if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_ERROR, AdminOnly); if(IsPlayerInAnyVehicle(playerid)) { new car,string[128],sendername[30]; car = GetPlayerVehicleID(playerid); if(!car) return 1; // is sarac, n-am masina GetPlayerName(playerid, sendername, sizeof(sendername)); if(Spawned[car] == 0) { SetVehicleToRespawn(car); format(string,sizeof(string),"AdmCmd: Admin %s respawned vehicle %d.",sendername,car); ABroadCast(COLOR_ADMCOMMANDS,string,1); } else { DestoyVeh(car); format(string,sizeof(string),"AdmCmd: Admin %s destoyed vehicle %d.",sendername,car); ABroadCast(COLOR_ADMCOMMANDS,string,1); } } else { new car,string[128],sendername[30]; if(sscanf(params, "d", car)) return SendClientMessage(playerid, COLOR_DCHAT, "* Syntax: /vrethis <CarID>"); if(!car) return 1; // is sarac, n-am masina GetPlayerName(playerid, sendername, sizeof(sendername)); if(Spawned[car] == 0) { SetVehicleToRespawn(car); format(string,sizeof(string),"AdmCmd: Admin %s respawned vehicle %d.",sendername,car); ABroadCast(COLOR_ADMCOMMANDS,string,1); } else { DestoyVeh(car); format(string,sizeof(string),"AdmCmd: Admin %s destoyed vehicle %d.",sendername,car); ABroadCast(COLOR_ADMCOMMANDS,string,1); } } return 1; }
-
kwnx's post in Ajutor Trucker was marked as the answer
trailer[playerid] = CreateVehicle(591,-110.4858,-1173.0320,2.5198,2,64,1,-1); SetTimerEx("AttachTrailer", 1500, false, "ii", trailer[playerid], truckercar[playerid]); SetPlayerCheckpoint(playerid, -2253.1584,-68.5924,35.1719, 15.0); CP[playerid] = 2; si
forward AttachTrailer(trailerid, vehicleid); public AttachTrailer(trailerid, vehicleid) { AttachTrailerToVehicle(trailerid, vehicleid); }
-
kwnx's post in Se scrie de 2 ori textul was marked as the answer
public OnPlayerText(playerid, text[]) { new string[60]; if(P_Data[playerid][pAdmin] >= 1) { format(string, sizeof(string), "{2641FE}%s {FFFFFF}: %s", GetName(playerid), text); //0x990000FF SetPlayerChatBubble(playerid, text, -1, 30.0, 10000); ProxDetector(20.0, playerid, string,COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); } return 0; } Mai exact, trebuie sa pui ultimul 'return' ca fiind fals (0).
-
kwnx's post in Eroare comanda /stats was marked as the answer
Incearca sa treci comenzile pe zcmd.
Sau macar comanda /stats daca ti se pare prea greu ...
-
kwnx's post in Problema comanda was marked as the answer
Schimba
ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "{FFFF00}Premium Shop{FFFFFF}", "Clear Warns: {FFFF00}10{FFFF00} Pucte Premium\nPremium Account: {FFFF00}60{FFFF00} Pucte Premium\nClear Faction Punish: {FFFF00}15{FFFF00} Pucte Premium\nChange Nickname: {FFFF00}10{FFFF00} Pucte Premium\nClear car 1 KM's:{FFFF00}25{FFFF00} Pucte Premium\nClear car 2 KM's: {FFFF00}25{FFFF00} Pucte Premium\nClear car 3 KM's: {FFFF00}10{FFFF00} Puncte premium\nClear Pucte Premium car 4 KM's {FFFF00}10{FFFF00} Puncte Premium\nClan: {FFFF00}50{FFFF00} Pucte Premium\niPhone: {FFFF00}5{FFFF00} Pucte Premium\n", "Select", "Close");cu
new str[500]; strcat(str, "Clear Warns: {FFFF00}10{FFFF00} Pucte Premium\n"); strcat(str, "Premium Account: {FFFF00}60{FFFF00} Pucte Premium\n"); strcat(str, "Clear Faction Punish: {FFFF00}15{FFFF00} Pucte Premium\n"); strcat(str, "Change Nickname: {FFFF00}10{FFFF00} Pucte Premium\n"); strcat(str, "Clear car 1 KM's:{FFFF00}25{FFFF00} Pucte Premium\n"); strcat(str, "Clear car 2 KM's: {FFFF00}25{FFFF00} Pucte Premium\n"); strcat(str, "Clear car 3 KM's: {FFFF00}10{FFFF00} Puncte premium\n"); strcat(str, "Clear Pucte Premium car 4 KM's {FFFF00}10{FFFF00} Puncte Premium\n"); strcat(str, "Clan: {FFFF00}50{FFFF00} Pucte Premium\n"); strcat(str, "iPhone: {FFFF00}5{FFFF00} Pucte Premium\n"); ShowPlayerDialog(playerid,2222,DIALOG_STYLE_LIST, "{FFFF00}Premium Shop{FFFFFF}", str, "Select", "Close");
-
kwnx's post in Problema Pyaday was marked as the answer
Pui la OnGameModeInt()
SetTimer("SyncUp", 60000, true);Dupa care schimbi
if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))cu
if(minn == 0)
-
kwnx's post in Problema compilare dialoguri 0.3.7 RC was marked as the answer
new str[500]; strcat(str, "Motiv\tPret\tPermis\n"); strcat(str, "Folosire telefon la volan\t$5000\tNone\n"); strcat(str, "Condus fara centura\t10000$\tNone\n"); strcat(str, "Condus neregulamentar\t25000$\tConfiscare\n"); strcat(str, "Oprire|Stationare|Parcare Neregulamentara\t5.000$\tNone\n"); strcat(str, "Conducerea vehiculelor cu roti sparte\t$10.000$\tNone\n"); strcat(str, "Folosire NOS\t10000$\tConfiscare\n"); strcat(str, "Folosire Hidraulice\t10000$\tConfiscare\n"); strcat(str, "Faruri stinse (dupa ora 21:00)\t10000$\tNone\n"); strcat(str, "Condus sub influenta alcoolului\t20000$\tConfiscare\n"); strcat(str, "Depasirea limitei de viteza cu 10-50 km/h\t10000$\tNone\n"); strcat(str, "Depasirea limitei de viteza cu 50+ km/h\t20000$\tConfiscare"); ShowPlayerDialog(playerid, 619, DIALOG_STYLE_TABLIST_HEADERS, "Selecteaza amenda:", str,"Select", "Cancel");
-
kwnx's post in Textdraw problem was marked as the answer
new playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, sizeof(playerName));public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, Nume[playerid]); return 1; }2. Sau ai putea face astfel:
Nume[playerid] = TextDrawCreate(85.000000, 430.062500, "");Dupa care creem un stock.
stock PlayerName(playerid) { new playerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, playerName, sizeof(playerName); return playerName; }Apoi punem la OnPlayerSpawn
public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, Nume[playerid]); TextDrawSetString(Nume[playerid], PlayerName(playerid)); return 1; }
Dar totusi era mai bine daca faceai TD-ul sub forma PlayerTextdraw
-
kwnx's post in Problema PlayAudioStreamForPlayer. was marked as the answer
Am rezolvarea.
Dute pe oricare server vrei tu, dupa ce te autentifici/inregistrezi, apasa tasta "ESC", apasa pe "Options", apasa pe "Audio Setup", apoi setezi "Radio" la maxim.
-
kwnx's post in Ajutor Dialog was marked as the answer
Imposibil, poate nu ai pus tu cum trebuia, in fine, iti dau alta solutie. Revin in 2 sec cu edit.
Am revenit:
//=====================================// #include <a_samp> #include <zcmd> //=====================================// #define DIALOG_HELP0 0 #define DIALOG_HELP 1 #define DIALOG_HELP1 2 #define DIALOG_HELP2 3 //=====================================// public OnFilterScriptInit() { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == DIALOG_HELP0) { ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, "Help", "Varianta1\nVarianta2\nVarianta3", "Ok", "Exit"); } if(dialogid == DIALOG_HELP) { ShowPlayerDialog(playerid, DIALOG_HELP1, DIALOG_STYLE_LIST, "Help", "Test1\nTEST2\nTest3", "Ok", "Exit"); } if(dialogid == DIALOG_HELP1) { ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_LIST, "Help", "Dialog\nDialog1\nDialog3", "Ok", "Exit"); } if(dialogid == DIALOG_HELP2) { //Continuare... } return 1; } CMD:he(playerid, params[]) { ShowPlayerDialog(playerid, DIALOG_HELP0, DIALOG_STYLE_LIST, "Help", "TEST1\nTest2\nTest3", "Select", "Exit"); return 1; }
-
kwnx's post in Probleme obiecte was marked as the answer
Ca sa faci un FilterScript cu obiecte, urmeaza pasii urmatori:
1. Deschizi pawno.exe
2. Alegi "New"
3. Stergi tot ce iti apare.
4. Adaugi:
#include < a_samp > #include < streamer > //Ai grija ca include-ul streamer sa fie adaugat la includes. 5. Dupa ce ai definit include-urile, adugi mai jos:
#include < a_samp > #include < streamer > public OnFilerScriptInit() { //Aici adaugi Obiectele create. return 1; } public OnPlayerConnect(playerid) { //Aici adaugi Obiectele sterse din GTA. (RemoveBuildingForPlayer) return 1; } -
kwnx's post in Problema /setlevel was marked as the answer
Total Gresit!
CMD:setlevel( playerid, params[] ) { new gsString[ 2049 ]; gsString[ 0 ] = EOS; -
kwnx's post in Mutare GM de pe 0.3x pe 0.3z was marked as the answer
Daca il deschizi din Windows, inlocuieste samp-server.exe, announce.exe si samp-npc.exe cu ASTA
Daca il deschizi pe Host (Linux), descarca ASTA
-
kwnx's post in Register System was marked as the answer
Greseala mea, imi pare rau, in GM nu vedeam unde sunt defineurile pentru conectarea la MySQL asa ca am facut eu altele.
Am reparat asta acum ^^.
Link: http://www.girlshare.ro/34148222.9
-
kwnx's post in Destroy trailer dupa 1 minut was marked as the answer
public OnVehicleDeath(vehicleid, killerid) { new Timer[sizeof(Vehicle)]; for(new i = 0; i < sizeof(Vehicle); i++ ) if(GetVehicleTrailer(vehicleid) != 0) Timer[vehicleid] = SetTimerEx("KillVehicle", 10000, 0, "ii", vehicleid, 1); return 1; } function KillVehicle(vehicleid, checkplayer) { if(checkplayer == 0) { DestroyVehicle(vehicleid); KillTimer(Timer[vehicleid]); } else { foreach(Player, i) if(!IsPlayerInVehicle(i, vehicleid)) { DestroyVehicle(vehicleid); KillTimer(Timer[vehicleid]); } } return 1; }
Incearca asa..
-
kwnx's post in Ajutor Level was marked as the answer
du-te la OnPlayerConnect, si cauta acolo ceva legat de "Level" = 4...
Nu stiu cum ai trecuta tu variabila "Level" in GM, ar putea fi pLevel, aLevel, pAdmin etc.