Jump to content

Question

Posted

Cum pot face un gangzone in care daca omori primesti kick ?

Si cum fac ca atunci cand esti in acel gangzone,sa iti apara undeva jos sub radar un textdraw :

Esti pe teritoriul X .Daca vei face DM ,ve-i primi kick automat.

6 answers to this question

Recommended Posts

Posted

[pawn]public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)

{

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x, y, z);

if (x > minx && x < maxx && y > miny && y < maxy) return 1;

return 0;

}[/pawn]

[pawn]

//OnPlayerDeath

if(IsPlayerInArea(killerid,mX,MX,mY,MZ))

{

Kick(killerid);

}[/pawn]

Posted

Mersi!! Ti-am dat calificativ pozitiv :D  Dar cu textdrawul cum fac ?

EDIT: Defapt stiu cum fac,dar nu stiu cum sa il pun chiar jos de tot sub radar...nu stiu coordonatele

Poti sa imi dai un model,te rog ? :D

Posted

iati Zamaroth Textdraw Editor,e pe .com

(30/470 | X/Y  - sub harta..)

Posted

Am luat,am facut TD-ul ,am pus in script ,dar primesc warninguri "tag mismatch" si textdrawul nu functioneaza

Uite textdrawul :

public IsInSafeZone(playerid)
{
	if(IsPlayerInArea(playerid,1436.625, -1764.764, 1550.711, -1587.116)) // Police
    {
    Textdrawgang1 = TextDrawCreate(12.000000, 434.000000, "Mesaj");
    TextDrawBackgroundColor(Textdrawgang1, 255);
    TextDrawFont(Textdrawgang1, 0);
    TextDrawLetterSize(Textdrawgang1, 0.500000, 1.399999);
    TextDrawColor(Textdrawgang1, 16777215);
    TextDrawSetOutline(Textdrawgang1, 0);
    TextDrawSetProportional(Textdrawgang1, 1);
    TextDrawSetShadow(Textdrawgang1, 0);
    }
Unde ar trebui sa pun scriptul? Erorile:
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52405) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52406) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52407) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52408) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52409) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52410) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52411) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52412) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang2"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang3"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang4"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang5"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang6"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang7"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang8"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10872 bytes
Code size:          1827472 bytes

warning 203 imi da deoarece celelalte nu sunt complete.

Posted

nu asa...

In primu rand,cred ca ai pus SetTimer(IsInSafeZone,delay,1); desi ai un parameter,incearca asa:

[pawn]

new Text:Textdrawgang1;

//la OnGameModeInit:

SetTimer("IsInSafeZone",1000,1);

    Textdrawgang1 = TextDrawCreate(12.000000, 434.000000, "Mesaj");

    TextDrawBackgroundColor(Textdrawgang1, 255);

    TextDrawFont(Textdrawgang1, 0);

    TextDrawLetterSize(Textdrawgang1, 0.500000, 1.399999);

    TextDrawColor(Textdrawgang1, 16777215);

    TextDrawSetOutline(Textdrawgang1, 0);

    TextDrawSetProportional(Textdrawgang1, 1);

    TextDrawSetShadow(Textdrawgang1, 0);

//inafara oricarei functii

public IsInSafeZone()

{

    for(new playerid;playerid<MAX_PLAYERS;playerid++)

    {

    if(!IsPlayerConnected(playerid))continue;

    if(IsPlayerInArea(playerid,1436.625, -1764.764, 1550.711, -1587.116)) // Police

    {

        TextDrawShowForPlayer(playerid,Textdrawgang1);

    }else

    {

        TextDrawHideForPlayer(playerid, Textdrawgang1);

    }

}

[/pawn]

Posted

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3022) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3051) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3087) : error 004: function "SafeResetPlayerWeapons" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3088) : error 004: function "SafeGivePlayerWeapon" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3115) : error 004: function "SafeResetPlayerWeapons" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4056) : error 004: function "ResetPlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4107) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4678) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4989) : error 004: function "SafeResetPlayerWeapons" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4990) : error 004: function "SafeGivePlayerWeapon" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5113) : error 004: function "SafeGivePlayerWeapon" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5448) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5466) : error 004: function "GetPlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5516) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5547) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5548) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5594) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5595) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5686) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5687) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5693) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5694) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5717) : error 004: function "BusrouteEnd" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5718) : error 004: function "BusrouteEnd" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5719) : error 004: function "BusrouteEnd" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(6014) : error 004: function "GivePlayerCash" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

26 Errors.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.