Jump to content
  • 0

Question

Posted

salut am incercat sa fac si eu o comanda de predare

cand ai wanted si nu e nici un politist on pe sv sa te duci in sectia lspd si sa scrii /predarepd

si sa te predai si sa apara de exemplu la tot sv

<< VoLuM3 s-a predat >>

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

{

if(IsPlayerConnected(playerid))

{

if (gPlayerLogged[playerid] != 0)

{

Showpredare(playerid,playerid);

}

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

else { WantedPoints[giveplayerid]+= 2; }

SetPlayerCriminal(giveplayerid,playerid, result);

return 1;

}

format(string, sizeof(string), "<< %s s-a predat >>", sendername);

OOCNews(COLOR_2RED, string);

}

if(bail == 1)

{

JailPrice[suspect] = bailprice;

format(string, sizeof(string), "You are jailed for %d seconds. Bail: $%d", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);

SendClientMessage(suspect, COLOR_LIGHTBLUE, string);

}

nu mia iesit ma ajutati variabilele X(

1 answer to this question

Recommended Posts

Posted

Probleme GF.

	if(strcmp(cmd, "/surrender", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	   	{
			if(WantedLevel[playerid] != 0)
			{
		        if(PlayerToPoint(6.0, playerid, 246.4589,64.5308,1003.6406))
				{
					new randf = random(sizeof(JailRandomSpawn));
					GetPlayerName(playerid, sendername, sizeof(sendername));
					GivePlayerMoney(playerid, -moneys);
					ResetPlayerWeapons(playerid);
					format(string, sizeof(string), "<< %s had surrender having wanted %d >>", sendername,WantedLevel[playerid]);
					OOCNews(COLOR_LIGHTRED, string);
					SetPlayerInterior(playerid, 6);
					SetPlayerPos(playerid, JailRandomSpawn[randf][0], JailRandomSpawn[randf][1],JailRandomSpawn[randf][2]);
					SetPlayerFacingAngle(playerid, JailRandomSpawn[randf][3]);
					PlayerInfo[playerid][pJailTime] = WantedLevel[playerid] * 100;
					PlayerInfo[playerid][pJailed] = 1;
					PlayerInfo[playerid][pArrested] += 1;
					SetPlayerFree(playerid,playerid, "Got Arrested");
					WantedPoints[playerid] = 0;
					WantedLevel[playerid] = 0;
					WantLawyer[playerid] = 1;
				}
				else
				{
				    SendClientMessage(playerid, COLOR_WHITE, "You are not at surrender place");
				    return 1;
				}
			}
		}//not connected
		return 1;
	}

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

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.