Jump to content
  • 0

2 probleme



Salut as avea 2 probleme : prima am incercat sa fac comanda /surrender pentru a se preda cineva care are wanted si nu e niciun cop pe server si nu-mi iese GM merge compilat dar nu functioneaza comanda. a doua ar fi daca stiti un tutorial sau aveti pentru o comanda de casino gen scrii ceva sau dai enter si joci la aparate, daca aveti ceva de genul asta va rog datimil si mie.

Comanda /surrender:

if(strcmp(cmd, "/surrender", true) == 0)
if(PlayerInfo[playerid][pWanted] >= 1)
if(!PlayerToPoint(3.0, playerid, 255.2613,67.3207,1003.6406))
SendClientMessage(playerid, COLOR_GREY, " You are not at surrender place in LSPD.");
return 1;
moneys = PlayerInfo[playerid][pWanted] * 1000;
GetPlayerName(playerid, sendername, sizeof(sendername)); GivePlayerMoneyEx(playerid, -moneys); ResetPlayerWeapons(playerid);
format(string, sizeof(string), "<< %s s-a predat avand wanted level %d >>", sendername ,WantedLevel[playerid]); OOCNews(COLOR_LIGHTRED, string);
SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,250.0502,67.6689,1003.6406);
PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pWanted] * 400;
PlayerInfo[playerid][pJailed] = 1; PlayerInfo[playerid][pArrested] += 1;
SetPlayerFree(playerid,playerid, "Got Arrested"); SetPlayerSkin(playerid, 62);
WantedPoints[playerid] = 0; WantedLevel[playerid] = 0; PlayerInfo[playerid][pWanted] = 0;
ResetPlayerWeapons(giveplayerid); SetPlayerWantedLevel(playerid, 0);
return 1;

P.S. Nu stergeti topicul va rog

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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.