petru97
-
Posts
36 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by petru97
-
-
Foloseste un streamer . De preferat incognito . http://forum.sa-mp.com/showthread.php?t=102865 . Dupa il descarci si creezi in serveru tau folderi "plugins " si acolo adaugi streamer.dll . Apoi te duci in folderul pawno la include si adaugi acolo streamer.inc . Apoi te duci in server.cfg si adaugi acolo sub filescripts o linie "plugins "si adaugi streamer ( plugins streamer )
Apoi te duci in modul tau si sus adaugi :
#include <streamer>
-
Salut ! Am si eu o problema : Am bagat mai demult cateva masini la fbi au mers fara probleme . Acum am bagat porti si deodata imi apar de 2 ori masinile ( aveam 6 apar 12 ) . Apar cate 2 una peste alta . Ce pot face ?
-
Uite si pentru /goto :
if(strcmp(cmd, "/goto", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /goto [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1) { if(Spectate[playerid] != 255) { Spectate[playerid] = 256; } GetPlayerPos(plo, plocx, plocy, plocz); if(PlayerInfo[plo][pInt] > 0) { SetPlayerInterior(playerid,PlayerInfo[plo][pInt]); PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt]; PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(playerid,0); } if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(playerid,1); PlayerInfo[playerid][pInt] = 1; } if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); } SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported"); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } } else { format(string, sizeof(string), " %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
-
Nu e facut de mine e facut de StuntMan ( respect ) . Adauga asta la sfarsitul modului tau si gata .
strtok(const stringstrtok[], &index) { new length = strlen(stringstrtok); while ((index < length) && (stringstrtok[index] <= ' ')) { index++; } new offset = index, result[20]; while ((index < length) && (stringstrtok[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = stringstrtok[index]; index++; } result[index - offset] = EOS; return result; }
-
Salut . Cauta in gamemode ( ctrl + f ) "/gethere" si vezi de unde incepe pana unde se termina ai grija sa o selectezi pe toata . Dupa inlocuiesti cu asta :
if(strcmp(cmd, "/gethere", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gethere [playerid/PartOfName]"); return 1; } new Float:plocx,Float:plocy,Float:plocz; new plo; plo = ReturnUser(tmp); if (IsPlayerConnected(plo)) { if(plo != INVALID_PLAYER_ID) { if (PlayerInfo[plo][pAdmin] > 1337) { SendClientMessage(playerid, COLOR_GRAD1, "Ask the admin to goto you."); return 1; } if (PlayerInfo[playerid][pAdmin] >= 3) { GetPlayerPos(playerid, plocx, plocy, plocz); if(PlayerInfo[playerid][pInt] > 0) { SetPlayerInterior(plo,PlayerInfo[playerid][pInt]); PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt]; PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal]; } if(PlayerInfo[playerid][pInt] == 0) { SetPlayerInterior(plo,0); } if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8 { SetPlayerInterior(plo,1); PlayerInfo[plo][pInt] = 1; } if (GetPlayerState(plo) == 2) { TelePos[plo][0] = 0.0; TelePos[plo][1] = 0.0; new tmpcar = GetPlayerVehicleID(plo); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); } else { SetPlayerPos(plo,plocx,plocy+2, plocz); } SendClientMessage(plo, COLOR_GRAD1, " You have been teleported"); } else { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); } } } else { format(string, sizeof(string), " %d is not an active player.", plo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; }
-
Cu placere !
-
Uite cativa pasi !
1. Download de aici si instaleaza : http://mtasa.com/
2. Intra in MTA pe map editor .
3. Creeazati ce mapa vrei tu , si dai save as ... ( ce nume vrei tu )
4. Acum dute unde ai instalat mta in server / mods / deatchmatch / resources si aici gasesti un folder cu numele la mapa
5. Intra in fisier si copiaza datele de acolo , dupa dute pe http://www.convertffs.com/ si copiezi acolo la "past here ". Dupa selectezi de la output primul change ce vrei tu : create object , midostream , incognito etc . Si din dreapta de la "Add to Sa-Mp script"dai click pana iti apare gammemode . Apoi dai convert .
6. Acum ce iti da copiezi si intri in mod ( cu pawno desigur ) si cauti linia "public OnGameModeInit() " si acolo adaugi . Dupa ce ai facut toate astea da-i compile ( F6 ) .
Sper ca ti-am fost de ajutor . Daca nu te descurci pune aici ce obiecte vrei si toate functia public OnGameModeInit() si ti le fac eu .
-
Posteaza scriptul aici si te ajut .
-
Posteaza te rog tot ce ai in mod cu #include . Poate asa ne dam seama .
-
Salut ! Vreau sa adaug si eu un nou spawn pe langa lossantos / sanfiero vreau sa bag si lasventuras . Am facut totul si imi da urmatoarele erori :
H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3404) : warning 217: loose indentation H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3404) : error 032: array index out of bounds (variable "gRandomPlayerSpawns") H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3409) : warning 217: loose indentation H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3411) : warning 209: function "SetPlayerSpawn" should return a value H:\Frequency Netowrk Test Server\gamemodes\XTreamE.pwn(3412) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.
Uita-ti scriptu .if ((gTeam[playerid]) == 1) { SetPlayerToTeamColor(playerid); rand = random(sizeof(gMedPlayerSpawns)); SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player SetPlayerFacingAngle(playerid, 270.0); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } if(PlayerInfo[playerid][pFMember] != 255) { new family = PlayerInfo[playerid][pFMember]; SetPlayerToTeamColor(playerid); SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]); SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]); SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]); return 1; } else { SetPlayerToTeamColor(playerid); if(PlayerInfo[playerid][pOrigin] == 1)//San Fiero { SetPlayerPos(playerid,-1968.8705,111.0802,27.6875); SetPlayerFacingAngle(playerid, 46.8583); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } if(PlayerInfo[playerid][pOrigin] == 3)//Las Venturas { SetPlayerPos(playerid,2631.6428,2346.5029,10.6719); SetPlayerFacingAngle(playerid, 203.6199); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } else if(PlayerInfo[playerid][pOrigin] == 2)//Los Santos { SetPlayerPos(playerid,1771.7191,-1656.6982,14.4234); SetPlayerFacingAngle(playerid, 265.6613); SetPlayerInterior(playerid,0); PlayerInfo[playerid][pInt] = 0; } else rand = random(sizeof(gRandomPlayerSpawns)); SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2], gRandomPlayerSpawns[rand][3]); // Warp the player SetPlayerFacingAngle(playerid, 270.0); SetPlayerInterior(playerid, 5); PlayerInfo[playerid][pInt] = 15; } return 1; } } return 1; }
Unde bag o mapa?
in Arhivă probleme
Posted
Uite cativa pasi !
1. Download de aici si instaleaza : http://mtasa.com/
2. Intra in MTA pe map editor .
3. Creeazati ce mapa vrei tu , si dai save as ... ( ce nume vrei tu )
4. Acum dute unde ai instalat mta in server / mods / deatchmatch / resources si aici gasesti un folder cu numele la mapa
5. Intra in fisier si copiaza datele de acolo , dupa dute pe http://www.convertffs.com/ si copiezi acolo la "past here ". Dupa selectezi de la output primul change ce vrei tu : create object , midostream , incognito etc . Si din dreapta de la "Add to Sa-Mp script"dai click pana iti apare gammemode . Apoi dai convert .
6. Acum ce iti da copiezi si intri in mod ( cu pawno desigur ) si cauti linia "public OnGameModeInit() " si acolo adaugi . Dupa ce ai facut toate astea da-i compile ( F6 ) .
Sper ca ti-am fost de ajutor . Daca nu te descurci pune aici ce obiecte vrei si toate functia public OnGameModeInit() si ti le fac eu .