Fil
Uživatel-
Příspěvků
40 -
Registrován
-
Aktivní
Content Type
Profiles
Forums
Calendar
Gallery
SA-MP
Everything posted by Fil
-
Hm ale proč mi nejde to hle public AdminArea(playerid){ for (new i=0;i if(GetVehicleType(i) == TYPE_AIRPLANE){ new Float:X; new Float:Y; new Float:Z; if (X >= -2907.791 && X <= -2767.656 && Y >= -1564.835 && Y <= -1424.701){ if (!IsPlayerAdmin(i)||zonapovol[playerid] == 1){ SendClientMessage(i,barva_cervena,"Byl jsi sestřelen!"); GetPlayerPos(i,X,Y,Z); MoveObject (adminb,X,Y,Z,200); CreateExplosion(X,Y,Z, 6, 20.0); }}}} return 1; }
-
CHytrak tohle mi funguje....Mně nafaka to prvni stim if(GetVehicleType(i) == TYPE_AIRPLANE){
-
zdar lidi udělal jsem si admin areu ale nesetřeluje mito letadla mam to takto public AdminArea(playerid){ for (new i=0;i if(GetVehicleType(i) == TYPE_AIRPLANE){ new Float:X; new Float:Y; new Float:Z; if (X >= -2907.791 && X <= -2767.656 && Y >= -1564.835 && Y <= -1424.701){ if (!IsPlayerAdmin(i)||zonapovol[playerid] == 1){ SendClientMessage(i,barva_cervena,"Byl jsi sestřelen!"); GetPlayerPos(i,X,Y,Z); MoveObject (adminb,X,Y,Z,200); CreateExplosion(X,Y,Z, 6, 20.0); }}}} return 1; } A takhle mito funguje ale kde přidam vic letadel tak už ne. public AdminArea(playerid){ for (new i=0;i if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 520){ new Float:X; new Float:Y; new Float:Z; if (X >= -2907.791 && X <= -2767.656 && Y >= -1564.835 && Y <= -1424.701){ if (!IsPlayerAdmin(i)||zonapovol[playerid] == 1){ SendClientMessage(i,barva_cervena,"Byl jsi sestřelen!"); GetPlayerPos(i,X,Y,Z); MoveObject (adminb,X,Y,Z,200); CreateExplosion(X,Y,Z, 6, 20.0); }}}} return 1; } Ostatni timery atd mam..
-
Hoj udělal jsem takovou admin areu že kdy žtam nikdo vleze tak se kněmu řesine objekt(Dinamit)A vybouchne ale nwm jak to mam propojit s publickem a by to bouchlo jen když budu v admin aree.Mně to bouchá i když nejsem v addmin aree new skouska; new adminb; #define barva_cervena 0xAA3333AA forward AdminArea(playerid); public OnGameModeInit() { adminb = CreateObject(1654,-1725.9196,-117.1467,3.5489, 0, 0, 0); skouska = SetTimer("AdminArea",1000,1); return 1; } public OnPlayerSpawn(playerid) { GangZoneShowForPlayer(playerid, skouska, 0xFF804096); return 1; } public AdminArea(playerid) { for(new i=0; i{ if (!IsPlayerAdmin(i)) { new Float:x; new Float:y; new Float:z; SendClientMessage(playerid,barva_cervena,"Byl jsi sestřelen!"); GetPlayerPos(playerid,x,y,z); MoveObject (adminb,x,y,z,200); CreateExplosion(x,y,z, 6, 20.0); } } }
-
prostě když dam sledovani hrače třeba u jizzy a pak dam nesledovat tak se neobjevim u jizzy ale tam kde začina to dane povolani u ktereho sem
-
hm sice jsem bez erroru ale stejně mně to spawne kmemu povolani a ne tam kde jsem dal příkaz /sledovat
-
TAkto??Jo a jak mam jeste errory G:\pawno\b.pwn(2590) : error 017: undefined symbol "X" G:\pawno\b.pwn(2603) : error 017: undefined symbol "X" DAl jsem new Float:X,Float:Y,Float:Z; ale mám též více erroru dcmd_sledovat(playerid,params[]){ if(IsPlayerAdmin(playerid)) { if(!strlen(params)) return SendClientMessage(playerid, 0x0099FFFF, "Použij: /sledovat [iD]"); new id = strval(params); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0x0099FFFF, "ID neexistuje"); if(IsPlayerAdmin(strval(params))) return SendClientMessage(playerid, barva_cervena, "Nemůžeš sledovat admina."); new sled[100]; GetPlayerName(playerid, sled, 24); TogglePlayerSpectating(playerid,1); PlayerSpectatePlayer(playerid,id); GetPlayerPos(playerid,X,Y,Z); SetPlayerInterior(playerid, GetPlayerInterior(id)); }else{ SendClientMessage(playerid,0xFFFFFFAA,"[*Správa*] Nejsi admin."); } return true; } dcmd_nesledovat(playerid,params[]){ #pragma unused params if(IsPlayerAdmin(playerid)) { if(IsPlayerConnected(playerid)) TogglePlayerSpectating(playerid,0); SetPlayerPos(playerid,X,Y,Z); SetPlayerInterior(playerid, GetPlayerInterior(playerid)); }else{ SendClientMessage(playerid,0xFFFFFFAA,"[*Správa*] Nejsi admin."); } return true; }
-
Ahoj lidi udělal jsem to pro /nesledovat a potřebuji když dam tento příkaz tak abych se objevil tam kde jsem dal /sledovat [id] tedkon když dam /nesledovat tak mně to respawne tam u jakeho povolani jsem. dcmd_nesledovat(playerid,params[]){ #pragma unused params if(IsPlayerAdmin(playerid)) { if(IsPlayerConnected(playerid)) TogglePlayerSpectating(playerid,0); SetPlayerInterior(playerid, GetPlayerInterior(playerid)); }else{ SendClientMessage(playerid,0xFFFFFFAA,"[*Správa*] Nejsi admin."); } return true; }
-
Ok udelam to a pak poslu kod jestli to mam dobře
-
Čus lidi jak mam udělat přičarovani auta /pricarovat id ???Jako je například v exisu /ecar id ????Dik
-
hmm chlapci G:\pawno\mdcity.pwn(112) : error 010: invalid function or declaration G:\pawno\mdcity.pwn(1518) : warning 219: local variable "x1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(1518) : warning 219: local variable "y1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(1518) : warning 219: local variable "z1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(1519) : warning 219: local variable "tmpdis" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2235) : warning 219: local variable "x2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2235) : warning 219: local variable "y2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2460) : warning 219: local variable "x1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2460) : warning 219: local variable "y1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2466) : warning 219: local variable "x2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2466) : warning 219: local variable "y2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2476) : error 001: expected token: "-identifier-", but found "(" G:\pawno\mdcity.pwn(2480) : error 021: symbol already defined: "GetPlayerPos" G:\pawno\mdcity.pwn(2483) : error 010: invalid function or declaration G:\pawno\mdcity.pwn(2485) : warning 203: symbol is never used: "tmpdis" G:\pawno\mdcity.pwn(2485) : warning 203: symbol is never used: "x1" G:\pawno\mdcity.pwn(2485) : warning 203: symbol is never used: "x2" G:\pawno\mdcity.pwn(2485) : warning 203: symbol is never used: "y1" G:\pawno\mdcity.pwn(2485) : warning 203: symbol is never used: "y2" G:\pawno\mdcity.pwn(2485) : warning 203: symbol is never used: "z1" G:\pawno\mdcity.pwn(2485) : warning 203: symbol is never used: "z2" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. řádky: 1518-1519: new Float:x1,Float:y1,Float:z1; new Float:tmpdis; 2235: new Float:x2,Float:y2,Float:az; 2460 až 2485: GetVehicleWithinDistance(playerid, Float:x1, Float:y1, Float:z11, Float:dist, &veh) { for(new i = 1; i < MAX_VEHICLES; i++){ if(GetVehicleModel(i) > 0){ if(GetPlayerVehicleID(playerid) != i ){ new Float:x, Float:y, Float:z; new Float:x2, Float:y2, Float:z22; GetVehiclePos(i, x, y, z); x2 = x1 - x; y2 = y1 - y; z22 = z11 - z; new Float:vDist = (x2*x2+y2*y2+z22*z22); if( vDist < dist){ veh = i; dist = vDist; }}}} } ////// public GetDistanceBetweenPlayers(playerid,playerid2){ print("GetDistanceBetweenPlayers"); new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2; new Float:tmpdis; GetPlayerPos(playerid,x1,y1,z1); GetPlayerPos(playerid2,x2,y2,z2); tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2)); return floatround(tmpdis); } 112: forward GetDistanceBetweenPlayers(playerid,playerid2);
-
G:\pawno\mdcity.pwn(112) : error 010: invalid function or declaration G:\pawno\mdcity.pwn(1518) : warning 219: local variable "x1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(1518) : warning 219: local variable "y1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(1519) : warning 219: local variable "tmpdis" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2235) : warning 219: local variable "x2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2235) : warning 219: local variable "y2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2460) : warning 219: local variable "x1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2460) : warning 219: local variable "y1" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2466) : warning 219: local variable "x2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2466) : warning 219: local variable "y2" shadows a variable at a preceding level G:\pawno\mdcity.pwn(2476) : error 001: expected token: "-identifier-", but found "(" G:\pawno\mdcity.pwn(2480) : error 021: symbol already defined: "GetPlayerPos" G:\pawno\mdcity.pwn(2485) : error 010: invalid function or declaration G:\pawno\mdcity.pwn(2487) : warning 203: symbol is never used: "tmpdis" G:\pawno\mdcity.pwn(2487) : warning 203: symbol is never used: "x1" G:\pawno\mdcity.pwn(2487) : warning 203: symbol is never used: "x2" G:\pawno\mdcity.pwn(2487) : warning 203: symbol is never used: "y1" G:\pawno\mdcity.pwn(2487) : warning 203: symbol is never used: "y2" G:\pawno\mdcity.pwn(2487) : warning 203: symbol is never used: "z12" G:\pawno\mdcity.pwn(2487) : warning 203: symbol is never used: "z21" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
-
čus lidi potřeboval bych poradit jak mam udělat public public GetDistanceBetweenPlayersDík
-
hm tak mi porad G:\pawno\skouska.pwn(161) : error 021: symbol already defined: "SendMessageToAdmins" G:\pawno\skouska.pwn(204) : error 021: symbol already defined: "PlayerName" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. řádek 161: { 204: stock PlayerName(playerid) {
-
No mave ma pravdu jetam hodně chyb a ja jsem zacatecnik a chtěl byhcto mave nemužes to sem napsat dobře????