Jump to content

[0.3]Cum sa faci sa apara stele la wanted - GodFather


angel

Recommended Posts

Am vazut ca multi playeri cauta cum sa faca sa apara stele la fiecare wanted primit.

Urmati acest tutorial>

La inceput puneti "new stars;" intre celalalte

Cauta "OnPlayerEnterVehicle" si pui sub asta  if(gTeam[playerid] >= 3)

                                                          {

        new wanted = GetPlayerWantedLevel(playerid);

        SetPlayerWantedLevel(playerid, wanted + 1);

Apoi cauti:

if(PlayerInfo[playerid][pJailed] == 1)

{

            SetPlayerInterior(playerid, 6);

SetPlayerPos(playerid,264.6288,77.5742,1001.0391);

SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");

return 1;

}

si pui asta deasupra la SetPlayerInterior(playerid, 6);

SetPlayerWantedLevel(playerid, 0);

Cauta asta:

if(count == 1)

{

GivePlayerMoney(playerid, - price);

PlayerInfo[playerid][pWantedDeaths] += 1;

PlayerInfo[playerid][pJailed] = 1;

    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);

    format(string, sizeof(string), "* You are in Jail for %d Seconds and lose $%d because of running away and getting shot by the Officer.", PlayerInfo[playerid][pJailTime], price);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

    WantedPoints[playerid] = 0;

WantedLevel[playerid] = 0;

}

}

}

Sub asta  PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(1000);

pui asta

SetPlayerWantedLevel(playerid, 0);

Apoi cauti linia asta

format(turnmes, sizeof(turnmes), "You've commited a Crime ( %s ). Reporter: %s.",reason,turner);

Si pui asta sub SendClientMessage

        new wanted = GetPlayerWantedLevel(playerid);

        SetPlayerWantedLevel(playerid, wanted + 1);

Apoi daca vrei sa faci cand copul da clear sa dispara stelele, Cauti comanda /clear mergi putin mai jos si gasesti Officer %s has cleared .... Sub SendClientMessage pui asta:

SetPlayerWantedLevel(giveplayerid, 0);

Cauta asta:

SetPlayerInterior(suspect, 6);

SetPlayerPos(suspect,264.6288,77.5742,1001.0391);

PlayerInfo[suspect][pJailTime] = time * 60;

if(bail == 1)

{

Deasupra lui SetPlayerInterior(suspect, 6);  pui asta:

SetPlayerWantedLevel(giveplayerid, 0);

Asta a fost tot!Sper sa va mearga! Daca aveti ceva nelamuriri postati aici si va voi raspunde!

Daca ti-am fost de ajutor +1 Respect!Multumesc

Link to comment
Share on other sites

Mie imi apare warning-ul asta :

D:\Jocuri\SA-MP\gamemodes\gf.pwn(28509) : warning 203: symbol is never used: "stars"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:           6704 bytes
Code size:          1205468 bytes
Data size:          4491576 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5103 cells (20412 bytes)
Total requirements: 5720132 bytes

1 Warning.

Link to comment
Share on other sites

  • 1 month later...
Guest painkiller779

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(9496) : error 017: undefined symbol "AntiDeAMX"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(9512) : error 004: function "LoadDynamicFactions" is not implemented

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(11603) : error 017: undefined symbol "GetXYInFrontOfPlayer"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(11620) : error 017: undefined symbol "GetXYInFrontOfPlayer"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(11640) : error 017: undefined symbol "GetXYInFrontOfPlayer"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35758) : error 003: declaration of a local variable must appear in a compound block

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35758) : error 017: undefined symbol "wanted"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35759) : error 017: undefined symbol "wanted"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35765) : warning 225: unreachable code

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35765) : error 029: invalid expression, assumed zero

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35765) : error 004: function "LoadDynamicFactions" is not implemented

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35793) : warning 225: unreachable code

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35793) : error 029: invalid expression, assumed zero

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35793) : error 004: function "SaveDynamicFactions" is not implemented

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35825) : warning 225: unreachable code

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35825) : error 029: invalid expression, assumed zero

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35825) : warning 221: label name "Float" shadows tag name

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35825) : error 017: undefined symbol "GetXYInFrontOfPlayer"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35825) : warning 221: label name "Float" shadows tag name

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35825) : error 017: undefined symbol "x"

C:\Users\Administrator\Desktop\RolePlay ChrisHD\RolePlay ChrisHD\gamemodes\xenon.pwn(35825) : fatal error 107: too many error messages on one line

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

16 Errors.

ma puteti ajuta?

Link to comment
Share on other sites

  • 2 months later...
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.