-
Posts
2.689 -
Joined
-
Last visited
-
Days Won
25
Content Type
Profiles
Forums
News
Documentation
Everything posted by Gireada
-
Trebuie sa ai admin level 6 if ( PlayerInfo [ playerid ] [ pAdmin ] == 6 )
-
Exista butonul edit. La comanda /v sell sterge if(PlayerInfo[playerid][pAcceptSellCar] == 0) { SendClientMessage(playerid, COLOR_WHITE, "Must be a admin of face when you sell car"); return 1; } Iar la cea cu /createcar schimbo, Ai warn
-
Dane comanda /v sell
-
Trebuie sa pui la ondialogresponse [pawn]if(!response) { switch(dialogid) { case id dialog: { return 1; } } }[pawn]
-
Incearca asa [pawn]else if(strcmp(x_nr,"park",true) == 0) { new Float:x,Float:y,Float:z; new Float:a; new carid; new getcarid; if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey]) { carid = PlayerInfo[playerid][pPcarkey]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey2]) { carid = PlayerInfo[playerid][pPcarkey2]; } else if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pPcarkey3]) { carid = PlayerInfo[playerid][pPcarkey3]; } else { return 1; } getcarid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, playername, sizeof(playername)); GetVehiclePos(carid, x, y, z); //GetPlayerFacingAngle(playerid, a); GetVehicleZAngle(carid, a); if(IsPlayerInVehicle(playerid,carid) && CarInfo[carid][cOwned] == 1) { if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999) { SendClientMessage(playerid, COLOR_GREY, "You don't own a car."); return 1; } if(getcarid == carid) { CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; format(string, sizeof(string), "~n~ You have parked your vehicle in this location. ~n~"); GameTextForPlayer(playerid, "You have parked your vehicle in this position. It will respawn here.", 10000, 3); OnPropUpdate(); OnPlayerUpdate(playerid); DestroyVehicle(carid); new vehicle = CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000); PutPlayerInVehicle(playerid, vehicle, 0); TogglePlayerControllable(playerid, 1); new tunecar = GetPlayerVehicleID(playerid); if(AvtoModification[tunecar][0] >= 1000 && AvtoModification[tunecar][0] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][0])) != AvtoModification[tunecar][0]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][0]); } } if(AvtoModification[tunecar][1] >= 1000 && AvtoModification[tunecar][1] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][1])) != AvtoModification[tunecar][1]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][1]); } } if(AvtoModification[tunecar][2] >= 1000 && AvtoModification[tunecar][2] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][2])) != AvtoModification[tunecar][2]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][2]); } } if(AvtoModification[tunecar][3] >= 1000 && AvtoModification[tunecar][3] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][3])) != AvtoModification[tunecar][3]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][3]); } } if(AvtoModification[tunecar][4] >= 1000 && AvtoModification[tunecar][4] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][4])) != AvtoModification[tunecar][4]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][4]); } } if(AvtoModification[tunecar][5] >= 1000 && AvtoModification[tunecar][5] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][5])) != AvtoModification[tunecar][5]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][5]); } } if(AvtoModification[tunecar][6] >= 1000 && AvtoModification[tunecar][6] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][6])) != AvtoModification[tunecar][6]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][6]); } } if(AvtoModification[tunecar][7] >= 1000 && AvtoModification[tunecar][7] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][7])) != AvtoModification[tunecar][7]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][7]); } } if(AvtoModification[tunecar][8] >= 1000 && AvtoModification[tunecar][8] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][8])) != AvtoModification[tunecar][8]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][8]); } } if(AvtoModification[tunecar][9] >= 1000 && AvtoModification[tunecar][9] <= 1193) { if(GetVehicleComponentInSlot(tunecar,GetVehicleComponentType(AvtoModification[tunecar][9])) != AvtoModification[tunecar][9]) { AddVehicleComponent(tunecar,AvtoModification[tunecar][9]); } } if(AvtoModification[tunecar][10] > 0) { ChangeVehiclePaintjob(tunecar,AvtoModification[tunecar][10]); } if(CarInfo[tunecar][cRegistered] == 1) { SetVehicleNumberPlate(tunecar, CarInfo[tunecar][cPlate]); } else { SetVehicleNumberPlate(tunecar, CarInfo[tunecar][cPlate]); } return 1; } } }[/pawn] daca nu merge schimba sistemul.
-
Dane liniile, nu trebuie sa ne uitam in gamemodul tau pentru 1 eroare si 1 warning.
-
Timer-ul. In cazul tau trebuie pus la on gamemodeinit. StartNewNRGEvent(); SetTimer("StartNewNRGEvent",timp, true); unde este timp tu trebuie sa scrii din cat in cat sa se repete
-
Ce functie sa se aplice. Uitate la sectiunea tutoriale si vei gasi tutorialul pentru format [pawn] if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "» Scrie: /(su)spect [playerid/PartOfName] [Wanted Level (1-6)] [motiv]"); return 1; } new playa; new money; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); money = strval(tmp); if (IsACop(playerid)) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears,true)) != -1) for(new i = pos, j = pos + strlen(Swears); i < j; i++) { result = '*'; } } if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "» Scrie: /(su)spect [playerid/PartOfName] [Wanted Level (1-6)] [motiv]"); return 1; } /*if (gTeam[playa] == 2 || IsACop(playa)) { SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar nu poti utiliza aceasta comanda pe un Cop."); return 1; }*/ if(money > 6) { SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar Wanted-ul este intre 1 si 6."); return 1; } if(money == 0) { SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar Wanted-ul este intre 1 si 6."); return 1; } new string1[128]; GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); WantedLevel[playa] = money; SetPlayerWantedLevel(playa, money); format(string, sizeof(string), "» Ai comis o infractiune [Motiv: %s], Reporter: %s.",result,sendername); SendClientMessage(playa, COLOR_LIGHTRED, string); format(string1, sizeof(string1), "» Wanted Level: %d", money); SendClientMessage(playa, COLOR_YELLOW, string1); format(string1, sizeof(string1), "» I-ai dat wanted %d, lui %s", money,giveplayer); SendClientMessage(playerid, 0xFFFFFFFF, string1); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { } } } } } else { SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar nu faci parte din factiunea {000cff}LSPD{ffffff}, {000cff}NG {ffffff}sau {000cff}FBI{ffffff}."); } } return 1; }[/pawn]
-
Google translet pentrumcei ce cred ca lectiile de engleza de la scoala nu sunt importante
-
Cele cu createobject le pui la ongamemodeinit, iar celw cu removebuilgind le pui la onplayerconnect
-
Nu exista tasta 2 din cate stiu.
-
Dute la tutoriale si vei gasi acolo.
-
Si ce vrei sa iti facem noi, invata scripting tata. Nu e nici o eroare/warning.
-
Instaleazati placa video. Sau daca nu ai instaleaza placa de baza
-
Noi de unde sa stim ce sistem ai. Dane comanda aia.
-
1.Citeste regulamentul. 2.Vrei sa faci un gamemode, dar nu stii sa schimbi un interior 3.Sunt tutoriale, cautale la tutoriale scripting.
-
Sisyemul e bun esti tu .... si nu stii sa downloadezi un includer.
-
Nu se cer scripturi.
-
Updateazati includerele pe 0.3x sau mai pe scurt iati pawno 0.3x
-
Pune new DM[MAX_PLAYERS]; la inceputul gamemodului.
-
Pacat nu
-
Este facut de mine + ca in scriptul ala e doar unul, la mine e cu o infinatate.
-
Exista tutoriale, cautale
-
Personal Vehicle System v5(update) 16.04.2013
Gireada replied to Gireada's topic in Filterscript-uri
Updateaza includerele pe 0.3x -
Esteo mapa facuta de mine, am folosit functiile setobjectmaterial si setobjectmaterialtext
