adv1337
-
Posts
26 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by adv1337
-
-
la onplayerstreamin
if(IsInWar1(playerid) && IsInWar1(forplayerid) || IsInWar2(playerid) && IsInWar2(forplayerid))
{
new zone = GetPlayerZone(playerid);
if(zone == -1 || TakeON[zone] == 0 || !IsPlayerInZone(forplayerid, zone))
{
SetPlayerMarkerForPlayer( playerid, forplayerid, ( GetPlayerColor( forplayerid ) & 0xFFFFFF00 ) );
SetPlayerMarkerForPlayer( forplayerid, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
}
} -
si cum ar trebuii sa arate?
-
Eventual hai pe un discord sa vorbim in timp-real.
adv #0584 -
Am mai adaugat dupa count++ un
SetPlayerMarkerForPlayer(42, 1, (GetPlayerColor(1) & 0xFFFFFF00));
dar nu merge. -
function GetPlayersInZone(zoneid, teamid, vw)
{
new count;
foreach(new i : Player)
{
new faction = PlayerInfo[pMember] + PlayerInfo[pLeader];
if(IsPlayerConnected(i) && faction == teamid && IsPlayerInZone(i, zoneid) && GetPlayerVirtualWorld(i) == vw)
{
if(IsAfk == 0 || (IsAfk == 1 && AFKMins < 2))
{
count++;
}
}
}
return count;
} -
1 hour ago, StR_Marian said:
Nu cred ca te referi la checkpoint in sine si ca te referi ca jucatori sa fie vazuti pe teritoriu.
Este ok ce ai facut doar ca el poate nu are 'IsInTurf', si mai mult ca sigur cauta sa arate jucatori in teritoriu nu sa faca un checkpoint.
Sa arate jucătorii pe turf, asta ma intereseaza
-
Cum ati vazut din titlu, cum as putea sa creez un checkpoint unde se afla playerul intra pe turf?
-
deci, o rezolvare? nu merge cand l-am pus in pawno>includes si dupa am bagat in gamemode cu #include
-
exact asa am facut, si am primit erori, am scris gresit in intrebare.
-
Cum instalezi fisiere .inc?
Am incercat sa le bag in include pawno, sa le dau cu include in gamemode dar primesc erori
-
@Koqs un discord, eventual sa vorbim in timp real, probleme peste probleme.
-
Problema asta s-a rezolvat, comanda merge, totul e in regula si frumos, dar cand intru in obiect nu dispare, solutii? eventual discord pentru a vorbii in timp real
-
Cum as putea sa dau update la include?
Daca ma pot lamurii,te rog!
-
Si ce as putea sa fac, incat sa ma poti lamuri?
-
Cand comanda e activata cu toate define-urile da eroare la un alt define carr e totul inregula cu el, comanda asta e pe la linia 30k..
-
\pawno\include\SW.inc(204) : error 001: expected token: ";", but found "if" EROAREA
COD:
CMD:oplace(playerid, params[], help) {
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!");
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
if(eventobjects > 9) return SCM(playerid, COLOR_WHITE,"You can't place more than 10 objects.");
new objectid,prize,sendername[30],Float:pX,Float:pY,Float:pZ,string[128];
if(sscanf(params, "dd",objectid,prize))
{
SendClientMessage(playerid, COLOR_WHITE,"{AB0000}Usage: {FFFFFF}/oplace <Object (Id object)> <Prize>");
SendClientMessage(playerid, COLOR_WHITE,"[OBJECTS] Cadou: 19054 - 19058 | Glob craciun: 19059 - 19063 | Oua paste: 19341 - 19345");
return 1;
}
if(prize < 1 || prize > 10000000) return SendClientMessage(playerid, COLOR_WHITE, "Prize must be between $1 and $10,000,000.");
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerPos(playerid,pX,pY,pZ);
eventobjects++;
objectevent[eventobjects] = CreatePickup(objectid, 1, pX+2,pY,pZ, -1);
eventprizeobj[eventobjects] = prize;
format(string,sizeof(string),"Admin %s[admin:%d] started an event. Object: %d, prize: $%s.",sendername,PlayerInfo[playerid][pSQLID],objectid,FormatNumber(prize));
ABroadCast(COLOR_RED2, string,1);
Adminlog(string);
return 1;
} -
CMD:vre(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You need to login first.");
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_ERROR, "Nu ai gradul necesar ca sa folosesti aceasta comanda!");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_ERROR, "You need to be in a vehicle.");
new found = 0;
for(new i = 0; i < sizeof(VehToDestroy) && found == 0; i++)
{
if(VehToDestroy == GetPlayerVehicleID(playerid))
{
vDBID[ VehToDestroy ] = 0;
DestroyVehicle(VehToDestroy);
VehToDestroy = 1;
found = 1;
}
}
if(found == 0)SendClientMessage(playerid, COLOR_ERROR, "You can't destroy this vehicle.");
return 1;
}Can't destroy this car, si e masina simpla
-
LA FEL
-
enum cInfo
{
cID, -
CMD:checkv(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LIGHTGREEN3, AdminOnly);
new id,string[256],count;
if(sscanf(params, "u",id)) return SendClientMessage(playerid, COLOR_GREY, "Syntax:{FFFFFF} /checkv [name/playerid]");
if(IsPlayerConnected(id))
{
for(new v; v < MAX_PERSONAL_VEHICLES; v++)
{
if(PlayerInfo[id][cID][v] != 0)
{
format(string,sizeof(string),"[ID:%d] %s | age: %d | km: %.0f | colors: %d, %d",PlayerInfo[id][pCarID][v],aVehicleNames[PlayerInfo[id][pCarModel][v] - 400],GetDaysFromTimestamp(PlayerInfo[id][pCarBuyTime][v]),PlayerInfo[id][pCarKM][v],PlayerInfo[id][pCarColor1][v],PlayerInfo[id][pCarColor2][v]);
SendClientMessage(playerid, COLOR_LIGHTGREEN3, string);
count++;
}
}
if(count == 0) return SendClientMessage(playerid, COLOR_WHITE, "This player don't have a vehicle spawned.");
}
return 1;
}
Urmatoarele Erori
(24438) : error 029: invalid expression, assumed zero(24440) : warning 213: tag mismatch
(24440) : error 001: expected token: ")", but found "["
(24440) : error 029: invalid expression, assumed zero
(24440) : warning 215: expression has no effect
(24440) : error 001: expected token: ";", but found "]"
Linia 24440: if(PlayerInfo[id][cID][v] != 0)
Linia 24438:for(new v; v < MAX_PERSONAL_VEHICLES; v++) -
Dupa ce new CanSpectate[MAX_PLAYERS]; eroare de mai sus
-
27031) : error 029: invalid expression, assumed zero ?
-
Salut, la comanda /goto si /gethere vreau ca player-ul sa intre in masina automat, nu langa masina.
Comanda /goto:https://pastebin.com/qHAX04z9
Comanda /gethere:https://pastebin.com/tQP4yZPN
Multumesc Anticipat! -
un panel compatibil bossule?
checkpoint cand intra pe turf
in Ajutor Scripting
Posted
Problema s-a rezolvat, acum checkpoint-urile functioneaza cum trebuie doar ca problema era la ShoWplayersMarkers era pe 0, trebuia pe 2, Multumiri @Eyser