-
Posts
519 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
News
Documentation
Posts posted by andy47
-
-
[pawn]MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);[/pawn]
inloc de asta pune asta:
[pawn]MyPickup = CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 0);[/pawn]
daca te uitai pe wiki vedeai cum se foloseste functia CreatePickup
[pawn]CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);[/pawn]
http://wiki.sa-mp.com/wiki/CreatePickup
-
mai incearca odata ca am dat edit
[pawn]// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
new MyPickup;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("_________Filterscript by SkyNet_________");
print("--------------------------------------\n");
MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSpecialAction(playerid, 20);
return 1;
}
if(listitem == 1)
{
SetPlayerSpecialAction(playerid, 21);
return 1;
}
}
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MyPickup)
{
ShowPlayerDialog(playerid, 1, 2, "dialog1", "1. Bere\n2. Tigari", "Ok!", "N-am bani");
}
return 1;
}[/pawn]
-
daca vrei sa fie filescript faci asa
[pawn]// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
new MyPickup;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("_________Filterscript by SkyNet_________");
print("--------------------------------------\n");
MyPickup == CreatePickup(1239, 1, -514.3143, 2551.9082, 53.4141, 181.8650, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ])
{
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{
SetPlayerSpecialAction(playerid, 20);
return 1;
}
if(listitem == 1)
{
SetPlayerSpecialAction(playerid, 21);
return 1;
}
}
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == MyPickup)
{
ShowPlayerDialog(playerid, 1, 2, "dialog1", "1. Bere\n2. Tigari", "Ok!", "N-am bani");
}
return 1;
}[/pawn]
-
vezi ca inloc de [pawn]params[])[/pawn] pune [pawn]params[])[/pawn] asa se pune de la forum nush de ce
-
[pawn]if(strcmp(cmd, "/goto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "CMD: /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][pHelper] >= 1)
{
if(Spectate[playerid] != 255)
{
Spectate[playerid] = 256;
}
GetPlayerPos(plo, plocx, plocy, plocz);
if(PlayerInfo[plo][pInt] > 0 || GetPlayerInterior(plo) > 0)
{
SetPlayerInterior(playerid,GetPlayerInterior(plo));
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);
}
format(string, sizeof(string), " Ai fost teleportat la playerul %s.", plo);
SendClientMessage(playerid, 0xA8A8FFFF, string);
SetPlayerInterior(playerid,GetPlayerInterior(plo));
PlayerInfo[playerid][pInt] = GetPlayerInterior(plo);
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(plo));
HouseEntered[playerid] = HouseEntered[plo];
}
else
{
SendClientMessage(playerid, COLOR_1RED, "Nu ai acces la aceasta comanda ");
}
}
}
else
{
format(string, sizeof(string), " That player is not connected.", plo);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}[/pawn]
incearca asta
-
[pawn]CMD:rcmds(playerid, params[])
{
new rcmds[1800];
//--------------------------------------------------------------------------
if(IsPlayerAdmin(playerid))
{
//----------------------------------------------------------------------
strcat(rcmds, "{FF0000}/SetKills {FF9900}» {AFAFAF} Seteaza Kills (Doar pentru tine)!\n");
strcat(rcmds, "{FF0000}/SetDeaths {FF9900}» {AFAFAF} Seteaza Deaths (Doar pentru tine)!\n");
strcat(rcmds, "{FF0000}/SetSpree {FF9900}» {AFAFAF} Seteaza Killing Spree(Doar pentru tine)!\n");
strcat(rcmds, "{FF0000}/SetBestKills {FF9900}» {AFAFAF} Seteaza Best Killing Spree(Doar pentru tine)!\n");
strcat(rcmds, "{FF0000}/SetHours {FF9900}» {AFAFAF} Setezi orele (Doar pentru tine)!\n");
strcat(rcmds, "{FF0000}/SetRespect {FF9900}» {AFAFAF} Seteaza + la Respect!\n");
strcat(rcmds, "{FF0000}/SetMRespect {FF9900}» {AFAFAF} Seteaza - la Respect!\n");
strcat(rcmds, "{FF0000}/SetVWarn {FF9900}» {AFAFAF} Seteaza Warn la VIP.\n");
strcat(rcmds, "{FF0000}/SetStunt {FF9900}» {AFAFAF} Seteaza Stunt Points\n");
strcat(rcmds, "{FF0000}/SetRace {FF9900}» {AFAFAF} seteaza Race Points.\n");
strcat(rcmds, "{FF0000}/SetDrift {FF9900}» {AFAFAF} Seteaza Drift Points.\n");
strcat(rcmds, "{FF0000}/Setc4 {FF9900}» {AFAFAF} Seteaza bombele c4.\n");
strcat(rcmds, "{FF0000}/SetLevel {FF9900}» {AFAFAF} Seteaza nivelul Admin-ului.\n");
strcat(rcmds, "{FF0000}/SetRVIP {FF9900}» {AFAFAF} Seteaza nivelul VIP-ului.\n");
strcat(rcmds, "{FF0000}/SetCoins {FF9900}» {AFAFAF} Seteaza Coins.\n");
strcat(rcmds, "{FF0000}/GiveallCoins {FF9900}» {AFAFAF} Setezi coins la toti playerii!\n");
ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "{0066CC}X{FFFF00}S{FF0000}D{AFAFAF} - RCON Commands", rcmds, "OK", "");
}
else
{
SendClientMessage(playerid, red, "ERROR: Only RCON Admins can view this dialog!");
}
return 1;
}
[/pawn]
incearca asta
-
posteaza THREAD_CHECK_BANS_LIST
-
bravo RoW ai o inghetata de la mine :D
-
mergi la
public OnPlayerEnterCheckpoint(playerid)
si adaugiif(CP[playerid] == 0) { DisablePlayerCheckpoint(playerid); }
-
daca gasesti pe net l/r mysql r8 ai un ou de pasti;)
-
posteaza si functia CustomPickups
EDIT: la
x_nr = strtok(cmdtext, idx);
ai pusnew x_nr[256];
??
-
new antifk[MAX_PLAYERS]; public OnPlayerDeath(playerid, killerid, reason) { antifk[playerid] ++; SetTimerEx("fk_public", 1000,false,"i",playerid); return 1; } forward fk_public(playerid); public fk_public(playerid) { antifk[playerid] --; if(antifk[playerid] > 3) { SendClientMessage(playerid, -1,"Acest server foloseste Anti Fake-Kill !"); Kick(playerid); } return 1; }
incearca asta sau pune la onplayerdeathif(GetPlayerWeapon(killerid) != reason) { SendClientMessage(playerid, -1, "Kill fals !!!"); }
-
dai ctr+f si cauta pLevel si vezi ca iti da ceva gen asta:
[pLevel] = 2;
in loc de 2 pui 1
-
verifica coordonatele poate din cauza asta nu se misca usa
-
la linia asta:
public OnPlayerCommandText(playerid, cmdtext[])
ce is semnele alea!? [] ? P.S.: trb asapublic OnPlayerCommandText(playerid, cmdtext[])
-
sper sa te ajute tutorialul acesta
-
dai ctr+f si cauta
PlayerInfo[i][pLevel] = 2;
inloc de 2 pune 1
-
zi bugu si il rezolv eu:D
P.S.: postez si bank system pe mysql cu dialoguri =) si mai vad eu....;)
-
stergel il ai deja definit
-
MySql Login/Register System
Am creat un system de login register simplu pe mysql r8 pe care am folosit cache.
Multa lume cauta asa ceva asa ca m-am gandit sa-l postez.
Nu am descoperit nici un bug.
Am pus daca playerul nu este logat sa i se stearga contul.
Conturile se salveaza odata la 10 minute.
Baza de date(.sql): [download]http://www.solidfiles.com/d/a9088e354c[/download]
[download]https://www.dropbox.com/s/56ennoqmdv35gjq/legend.sql[/download]
[download] http://www.4shared.com/document/ofeuac_P/legend.html[/download]
Scriptul(.pwn):[download]http://www.solidfiles.com/d/d87dcdc3cc[/download]
[download]https://www.dropbox.com/s/8w0vsthnshag2h7/mere.pwn[/download]
[download] http://www.4shared.com/file/JbNDKAXY/mere.html[/download]
MySql Plugin Include(.dll .so .inc): [download]http://www.solidfiles.com/d/cc123799df/[/download]
[download]http://www.4shared.com/rar/TzTY1Rgh/pluginandinclude.html[/download]
[download]https://www.dropbox.com/s/win9mqikilzggxh/pluginandinclude.rar[/download]
-
fi mai explicit cu ce vrei sa te ajut?
-
if(newkeys==KEY_SECONDARY_ATTACK) { if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) { if(PlayerToPoint(2, playerid,1478.6801,-1814.8496,15.3944)) { SetPlayerPos(playerid,388.2494,173.4076,1008.4747); SetPlayerInterior(playerid,3); SendClientMessage(playerid,COLOR_WHITE,"» Bine ai venit in {00FF00}Primaria Los Santos{ffffff}."); } if(PlayerToPoint(2, playerid,388.2494,173.4076,1008.4747)) { SetPlayerPos(playerid,1478.7048,-1807.0890,13.5469); SetPlayerInterior(playerid,0); } } }
nu ar trb sa-ti mai dea nici o eroare
-
new idx;
pune la linia 15299
-
daca ai incerca sa faci cum ti-am zis eu ti-ar fi reusit dar nah...
Ajutor! Nu salveaza datele.
in Arhivă probleme
Posted
pai posteaza systemul