Jump to content
  • 0

Wanted Stars


Guest bL1nd3R

Question

25 answers to this question

Recommended Posts

Guest bL1nd3R

si unde il adaug?

uitati comanda /su , modificatio dak vreti , va rog !!!

        if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    if(OnDuty[playerid] != 1  && PlayerInfo[playerid][pMember] == 1)
			{
			    SendClientMessage(playerid, COLOR_GREY, "   Nu esti on duty!");
			    return 1;
			}
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Scrie : (/su)spect [playerid/PartOfName] [crime discription]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if (gTeam[playerid] == 2 || IsACop(playerid))
			{
				if(IsPlayerConnected(giveplayerid))
				{
				    if(giveplayerid != INVALID_PLAYER_ID)
				    {
						if (gTeam[giveplayerid] != 2)
						{
							GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
							new length = strlen(cmdtext);
							while ((idx < length) && (cmdtext[idx] <= ' '))
							{
								idx++;
							}
							new offset = idx;
							new result[64];
							while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
							{
								result[idx - offset] = cmdtext[idx];
								idx++;
							}
							result[idx - offset] = EOS;
							if(!strlen(result))
							{
								SendClientMessage(playerid, COLOR_GRAD2, "Scrie : (/su)spect [playerid/PartOfName] [crime text]");
								return 1;
							}
							if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }
							else { WantedPoints[giveplayerid]+= 2; }
							SetPlayerCriminal(giveplayerid,playerid, result);
							format(string, sizeof(string), "Suspect ID:%d - Wanted Points %s", giveplayerid, result);
							SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
							return 1;
						}
						else
						{
							SendClientMessage(playerid, COLOR_GRAD2, "   Nu poti suspecta un politist !");
						}
					}
				}
				else
				{
						format(string, sizeof(string), "   %d acest player nu este activ.", giveplayerid);
						SendClientMessage(playerid, COLOR_GRAD1, string);
						return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD2, "   You are not PD / FBI / NG!");
			}
		}
		return 1;
	}

Link to comment
Share on other sites

Guest bL1nd3R

Pai ... :D uite :

D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5368) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5369) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5370) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5371) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5372) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5373) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5374) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5375) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5376) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(5377) : error 017: undefined symbol "Stars"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(8316) : warning 204: symbol is assigned a value that is never used: "string"
D:\Raul\Samp Server World !!!!\gamemodes\CraZy-BoYs.pwn(18947) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


10 Errors.

Link to comment
Share on other sites

Guest bL1nd3R

am descoperit un bug sau cel putin trebuie adaugat ceva pentru a disparea stelutele cand dai /jail tw1st 0 - Am dat comanda asta cand eram in Jail si nu mi-au disparut stelutele ce este de facut ?

dapz , am vazut si eu :P

Link to comment
Share on other sites

Nu trebuie sa inlocuiesti ma, omfg.

       if(PlayerInfo[playerid][pJailed] == 1)
		{
			SetPlayerWantedLevel(playerid, 0);
		        SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
			SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");
			return 1;
		}

Link to comment
Share on other sites

unde pun asta ce ai dat cu pastebin?

eu am pus asa si daca pun 6 imi da 6 stele la wanted 1....cum fac ca la fiecare wanted dat sa urce cate 1?

if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    if(!OnDuty[playerid] == 1  && PlayerInfo[playerid][pMember] == 1)

{

    SendClientMessage(playerid, COLOR_GREY, "  You are not on Duty!");

    return 1;

}

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/su)spect [playerid/PartOfName] [crime discription]");

return 1;

}

giveplayerid = ReturnUser(tmp);

if (gTeam[playerid] == 2 || IsACop(playerid))

{

if(IsPlayerConnected(giveplayerid))

{

    if(giveplayerid != INVALID_PLAYER_ID)

    {

if (gTeam[giveplayerid] != 2)

{

                    SetPlayerWantedLevel(playerid, 1);

                    SetPlayerWantedLevel(playerid, 2);

GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[64];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/su)spect [playerid/PartOfName] [crime text]");

return 1;

    }

if(WantedPoints[giveplayerid] == 0) { WantedPoints[giveplayerid] = 3; }

else { WantedPoints[giveplayerid]+= 2; }

SetPlayerCriminal(giveplayerid,playerid, result);

return 1;

}

else

{

SendClientMessage(playerid, COLOR_GRAD2, "  You can't suspect a Cop !");

}

}

}

else

{

format(string, sizeof(string), "  %d is not an active player.", giveplayerid);

SendClientMessage(playerid, COLOR_GRAD1, string);

return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_GRAD2, "  You are not a Cop / FBI / National Guard !");

}

}

return 1;

}

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

Link to comment
Share on other sites

Un chior nu vede....

       if(PlayerInfo[playerid][pJailed] == 1)
		{
			SetPlayerWantedLevel(playerid, 0);
		        SetPlayerInterior(playerid, 6);
			SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
			SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");
			return 1;
		}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.