![](https://www.sa-mp.ro/uploads/set_resources_42/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Staff
-
Posts
250 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by Staff
-
-
Doamne daca si ceva atat de simplu mai are nevoie de explicati eu imi tai pulta..
DACA:
Folosesti vr'e unul dintre aceste pluginuri: Streamer
SSCANF
MYSQL
Le faci un update adica cauti pe internet versiuni mai noi.
Faci la pluginuri cat si la fisierele [include-urile] din PAwno-Includes.
Daca ai facut tot pana aici si nu ti-a mers faci ce a zis Gireada si anume iei acel plugin si il bagi.
-
La masinile alea care "le-ai mutat" trebuiau schimbate doar coordonatele..nu facute alte masini.
Scriptu postat de tine nu are nici o problema.
-
La cum sunt uni parasuti nu m'as mira sa nu intelega nici tutorialu asta =))
-
Cireasa de pe torturi
-
La public [pawn]OnGameModeInit()[/pawn]
Bagi
[pawn] UsePlayerPedAnims();[/pawn]
-
stock StergeChatJucator(playerid, linii)
{
for(new i=1;i<=linii;i++)
{
SendClientMessage(playerid, 0xFFFFFFFF, " ");
}
return 1;
}
StegeChatJucator(playerid, 30);
-
Cauta la OnPlayerText si trebuie doar sa schimbi culoarea..
EX:
[pawn] new plmz[256];
format(plmz, sizeof(plmz),"(ID:%d){FFFFFF} %s",playerid, text);
SendPlayerMessageToAll(playerid, plmz);
SetPlayerChatBubble(playerid, text, COLOR_LIGHTGREEN, 100.0, 10000);[/pawn]
-
Arata liniile si daca poti mai mult..
-
Daca ai in fs sus #define <sscanf> pune sa fie #define <sscanf2>
-
Atunci ->[pawn]if(strcmp(cmdtext, "/exit", true) == 0)
{
if (PlayerToPoint(5,playerid,227.1062,125.7774,1003.1243))
{
SetPlayerPos(playerid,258.4353,90.5100,1002.4453);
SetPlayerInterior(playerid,6);
format(string, sizeof(string), "~w~Inside the ~w~LSPD");
GameTextForPlayer(playerid, string, 1000, 1);
return 1;
}
else if(PlayerToPoint(5,playerid,1110.3286,1573.0531,7.8184))
{
SetPlayerPos(playerid, 1283.4934,-1160.1379,23.9610);
}
else if(PlayerToPoint(5,playerid,288.745971, 169.350997, 1007.171875))
{
SetPlayerPos(playerid, 1653.8624, -1655.3732, 22.5156);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerToPoint(5,playerid,833.269775,10.588416,1004.179687))
{//Taxi
SetPlayerPos(playerid, 2134.4209,1420.2867,10.8125);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerToPoint(5,playerid,2769.5105,-1944.2544,12.9322))
{//LVV
SetPlayerPos(playerid, 2028.9482,1911.8250,12.2985);
SetPlayerInterior(playerid, 10);
SetPlayerVirtualWorld(playerid, 400);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pVirWorld] = 400;
PlayerInfo[playerid][pInt] = 10;
}
}[/pawn]
-
Cuaie e urat..tu ai postat comanda /exit pentru mai multe hq-uri..eu de unde stiu la care vrei tu sa modifici?
Totusi incearca asa ->[pawn]if(strcmp(cmdtext, "/exit", true) == 0)
{
if (PlayerToPoint(5,playerid,227.1062,125.7774,1003.1243))
{
SetPlayerPos(playerid,258.4353,90.5100,1002.4453);
SetPlayerInterior(playerid,6);
format(string, sizeof(string), "~w~Inside the ~w~LSPD");
GameTextForPlayer(playerid, string, 1000, 1);
return 1;
}
else if(PlayerToPoint(5,playerid,1110.3286,1573.0531,7.8184))
{
SetPlayerPos(playerid, 2028.9482,1911.8250,12.2985);
}
else if(PlayerToPoint(5,playerid,288.745971, 169.350997, 1007.171875))
{
SetPlayerPos(playerid, 1653.8624, -1655.3732, 22.5156);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerToPoint(5,playerid,833.269775,10.588416,1004.179687))
{//Taxi
SetPlayerPos(playerid, 2134.4209,1420.2867,10.8125);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pVirWorld] = 0;
PlayerInfo[playerid][pInt] = 0;
}
else if(PlayerToPoint(5,playerid,2769.5105,-1944.2544,12.9322))
{//LVV
SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
SetPlayerInterior(playerid, 10);
SetPlayerVirtualWorld(playerid, 400);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pVirWorld] = 400;
PlayerInfo[playerid][pInt] = 10;
}
}[/pawn]
-
Arata comanda /enter...defapt..vezi ca trebuie la comanda /enter sa fie o functie SetPlayerPos modifica acolo
-
[pawn]// This variable is used to store the id of the textdraw
// so that we can use it throught the script
new Text:welcomeText;
public OnGameModeInit()
{
// This line is used to create the textdraw.
// Note: This creates a textdraw without any formatting.
welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");
return 1;
}
public OnPlayerConnect(playerid)
{
//This is used to show the player the textdraw when they connect.
TextDrawShowForPlayer(playerid,welcomeText);
}[/pawn]
Adica declari variabilele..la ongamemodeinit pui textdraw in sine..si la onplayerconnect TextdrawShowForPlayer(playerid,plm cum ai tu declarat td-u
-
Pai dute unde ai vrea sa fi cand dai /enter dai /save si schimba coordonatele la comanda /enter..
-
) am zis update nu upload =))
Ia pawno 0.3x si baga include-urile si compileaza.
Intri pe -> http://www.sa-mp.ro/index.php?page=download
si downloadezi SA-MP 0.3X Windows Server SA-MP Official ,acolo o sa gasesti pawno..iei include-urile de la pawno al tau si le bagi acolo..daca te intreaba daca vrei sa-i dai "replace"(inlocuire) la include-uri sa nu dai.
-
pls help nu inseamna nimic
)
E chiar asa greu sa schimbi niste coordonate?
Din coordonatele alea care le primesti cand dai /save le iei pe primele 3...daca intelegi ce zic.
AddPlayerClass(110,2026.8257,1926.3090,12.3112,273.7685,0,0,0,0,0,0); // EXEMPLU
-
Incearca sa faci update la include-ul a_samp ..
-
Ia incearca asa :-?
[pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
{
if( newkeys & KEY_YES** )
{
new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;
GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID, Angle);SetVehiclePos(VehicleID, X, Y, Z);
GameTextForPlayer(playerid,"~w~ ~r~Vehicle Flipped",5000,5);
SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);
}
}
return 1;
}[/pawn]
-
Dar dc pui conditia sa fie mai mare si egal?
Eu as fi pus doar egal la toate... PlayerInfo[playerid][pAdmin] == 2
-
Nu pare nimic in neregula cum e definita "key_YES" da mai multe detalii..
-
Din poze arata chiar bine..nu te lasa.
-
Pai daca vrei sa apara cand intri pe server le bagi la onplayerspawn..si apar dupa ce te-ai logat..sau..
[pawn]dcmd_clearchat(playerid,params[])
{
for(new i = 0; i < 250; i++) SendClientMessageToAll(0x00000000," ");
return 1;
}[/pawn]
Sau..bagi linia asta unde ai si mesajele alea..[pawn]for(new i = 0; i < 250; i++) SendClientMessageToAll(0x00000000," ");[/pawn]
-
[pawn]AddStaticPickup(1279, 2, 2023.1178,1929.1450,12.3314); //Seif
if(!strcmp(cmdtext, "/exittraining", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -975.9757,1060.9830,1345.6719))
{
SetPlayerPos(playerid, -975.9757,1060.9830,1345.6719);//Aia..isirea
SetPlayerInterior(playerid, 0);
}
}[/pawn]
-
Npc(boti)
in Arhivă probleme
Posted
http://www.sa-mp.ro/forum/index.php/topic,3092.0.html
Na' sa ai si tu buti =))