susu
-
Posts
32 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
News
Documentation
Posts posted by susu
-
-
La OnPlayerConnect pui :
PlayAudioStreamForPlayer(playerid, "link melodie");
La OnPlayerSpawn pui :
StopAudioStreamForPlayer(playerid); //Asta in caz ca doresti sa se opreasca muzikca dupa ce se logheaza
-
Rezolvi bugurile si scapi de lag
PS: Recomand hostul 0ping
-
Il poti ruga pe Giardea sau invata cu samp wiki
Giardea =))))
PS: Gireada
-
Acel text este din san andreas , poate fi schimbat cu ajutorul unui maper bun
PS: Recomand Gireada!
-
Uite :
La
[pawn]public SetPlayerToTeamColor(playerid)
{
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //PS in cazul meu id de la factiunea hitman este 8 , nu stiu cum e la tine
SetPlayerColor(playerid,0x72727200);
}[/pawn]
-
Eu am rezolvat de mult aceasta problema , puteti da /tc
-
[pawn] if(strcmp(cmd, "/disablenewb", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1337 && (!nonewbie))
{
nonewbie = 1;
BroadCast(COLOR_GRAD2, " Newbie chat channel disabled by an {FFFFFF}Admin!");
SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel deactivated !");
}
else if (PlayerInfo[playerid][pAdmin] >= 1337 && (nonewbie))
{
nonewbie = 0;
BroadCast(COLOR_GRAD2, " Newbie chat channel enabled by an {FFFFFF}Admin!");
SendClientMessage(playerid, COLOR_GRAD2, " Newbie chat channel activated !");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!");
}
}
return 1;
}[/pawn]
-
Asa si tu ce ai facut sa o rezolvi, ai lasat comentul ala degeaba.
Am zis ca am aceiasi problema , nu am rezolvato inca
-
Coordonatele de la vechiul spawn le gaseti pe la sfarsit la :
public SetPlayerSpawn
if(PlayerInfo[playerid][pOrigin] == 1 //Los santos
{SetPlayerPos(playerid, x,y,z); }
Unde x , y, z sunt coordonatele
-
Si eu am aceasi problema , totul pare a fi in regula la OnPropUpdate() si restul ce tine de case
-
In primul rand trebuie sa vorbesti cu cei de la host sa iti faca o baza de date la sv , dupa care bagi in gm datele de la baza de date :)
-
add : nu se lasa id-uri citeste regulamentul si te ajut ;)
-
In cele mai multe cazuri e de la streamer deoarece streamerul pe care il foloseti este vechi , pt 0.3d si dac sv e pe versiunea 0.3e descarca ultima versiune de la streamer si dupa copileaza gm-ul din nou ;')
PS: La mine a mers :)
-
Uite unul bun :
[pawn] if (realchat)
{
if(gPlayerLogged[playerid] == 0)
{
return 0;
}
if(PlayerInfo[playerid][pAdmin] >= 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s spune: %s", sendername, text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
// ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);
return 0;
}[/pawn]
//Daca doresti sa pastrezi chestia cu maskon .. integreazo in asta si app vezi ca ai uitat sa inchizi "}" aici:
[pawn]if(realchat)
{
if(gPlayerLogged[playerid] == 0)
{
return 0;
}[/pawn]
-
Puteti da tc , am inteles ca nu se poate scoate
-
Salut !
Mati putea ajuta sa scot si eu acest triunghi galben
-
Instaleazati WampServer - Pentru inregistrarea mysql , apache etc.
Il am instalat , am facut si baza de date legatura tot
-
lam instalat , acum imi apare doar asta :
[22:29:20] Script[gamemodes/gtasarp.amx]: Run time error 19: "File or function is not found"
-
Uitati logul la server :
SA-MP Dedicated Server ---------------------- v0.3e, (C)2005-2012 SA-MP Team [22:29:20] filterscripts = "" (string) [22:29:20] [22:29:20] Server Plugins [22:29:20] -------------- [22:29:20] Loading plugin: streamer.dll [22:29:20] *** Streamer Plugin v2.5.2 by Incognito loaded *** [22:29:20] Loaded. [22:29:20] Loading plugin: mysql.dll [22:29:20] SA:MP MySQL Plugin v2.1.1 Loaded. [22:29:20] Loaded. [22:29:20] Loading plugin: nativechecker.dll [22:29:20] [MySQL] Thread running. Threadsafe: Yes. [22:29:20] Loaded. [22:29:20] Loaded 3 plugins. [22:29:20] [22:29:20] Ban list [22:29:20] -------- [22:29:20] Loaded: samp.ban [22:29:20] [22:29:20] [22:29:20] Filterscripts [22:29:20] --------------- [22:29:20] Loaded 0 filterscripts. [22:29:20] Error: Function not registered: 'mysql_reconnect' [22:29:20] Error: Function not registered: 'mysql_fetch_row_format' [22:29:20] Error: Function not registered: 'mysql_debug' [22:29:20] Error: Function not registered: 'mysql_retrieve_row' [22:29:20] Error: Function not registered: 'mysql_fetch_field_row' [22:29:20] Script[gamemodes/gtasarp.amx]: Run time error 19: "File or function is not found" [22:29:20] Number of vehicle models: 0
-
ai pus pozitiite de la i in care scrii /fmats in factions.cfg ?
-
Defineste masinile pe care le ai in GM , inafara de cele care sunt pentru civili
eu asa am facut si acum imi merge :)
-
e belea 10/10
-
1. N-ai nevoie de 2000 max litere la un string .
2. Te ajuti cu response (variabila) la functia OnDialogResponse.
Pai dc nu il ajuti :| daca stii atat de multe? Eu l-as ajuta dar din pacate nu stiu ;. Daca stie cineva ajutatil.
-
Am si eu o problema cand intru in truck imi scrie prods: 0/0
si daca dau /buyprods tot la fel imi arata 0/0! va rog ajutatima si pe mine
[pawn]if(IsATruck(newcar))
{
format(string, sizeof(string), "Products: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);
SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);
SendClientMessage(playerid, COLOR_WHITE, "INFO: You can deliver Products to Businesses.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Commands are /load /buyprods /sellprods");
}
if(strcmp(cmd, "/buyprods", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmpcar = GetPlayerVehicleID(playerid);
new compcost = 50;
if(PlayerToPoint(60.0, playerid, -78.9067,-1130.7458,0.6489))
{
if(IsATruck(tmpcar))
{
if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])
{
new amount;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]");
return 1;
}
amount = strval(tmp);
if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, " Can't buy less then 1 Product or more then 500 !"); return 1; }
new check= PlayerHaul[tmpcar][pLoad] + amount;
if(check > PlayerHaul[tmpcar][pCapasity])
{
format(string, sizeof(string), " You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
new cost = amount*compcost;
if(GetPlayerMoney(playerid) >= cost)
{
PlayerHaul[tmpcar][pLoad] += amount;
format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);
format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost);
SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);
GivePlayerMoney(playerid,-cost);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
else
{
format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost);
SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);
return 1;
}
}
else
{
format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);
SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);
return 1;
}
}
else
{
SendClientMessage(playerid, TEAM_GroveStreet_COLOR, "This Vehicle does not deliver Products.");
return 1;
}
}
}
return 1;
}[/pawn]
Puteti da TC
am rezolvat
problema masini de la casa
in Arhivă probleme
Posted
La:
[pawn]public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newcar == 1)
{
if(PlayerInfo[playerid][pPhousekey] == 0) { }
else
{
SendClientMessage(playerid, COLOR_GRAD1,"You don't have permission to drive this car.Rent a room owner first.");
RemovePlayerFromVehicle(playerid);
}
}[/pawn]
Faci asa peentru fiecare casa