[DUV] Salvar contas
#7

Voce criou esse comando cadeia?
Bem nгo entendi muito bem mais ve..
No Public Setplayerspawn
Код:
if(PlayerInfo[playerid][pJailed] == 5)
		{
		  SetPlayerInterior(playerid, 0);
			SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
			SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
			return 1;
		}
No onplayercommand text
Код:
	if(strcmp(cmd, "/cadeia", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: /cadeia [ id ] [tempo]");
				return 1;
			}
			new playa;
			new money;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			money = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 1000)//O level deAdmin que pode prender
			{
			  if(IsPlayerConnected(playa))
			  {
			    if(playa != INVALID_PLAYER_ID)
			    {
				    GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "* Voce prendeu %s.", giveplayer);
						SendClientMessage(playerid, SUA_COR, string);
						format(string, sizeof(string), "* Admin %s lhe prendeu.", sendername);
						SendClientMessage(playa, SUA_COR, string);
						ResetPlayerWeapons(playa);
						WantedPoints[playa] = 0;
						PlayerInfo[playa][pJailed] = 5;
						PlayerInfo[playa][pJailTime] = money*60;
						SetPlayerInterior(playa, 6);//O interior que o Jogador ira
						SetPlayerPos(playa, 264.6288,77.5742,1001.0391);//A cordenada do interior
						format(string, sizeof(string), "Voce foi preso por %d Minutos.", money);
						SendClientMessage(playa, SUA_COR, string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "  Voce nгo esta autorizado a usar este comando!");
			}
		}
		return 1;
	}
Achio que es isso que queres
Reply


Messages In This Thread
[DUV] Salvar contas - by Diogo_braz - 01.05.2010, 17:32
Re: [DUV] Salvar contas - by ipsBruno - 01.05.2010, 17:59
Re: [DUV] Salvar contas - by Diogo_braz - 01.05.2010, 18:01
Re: [DUV] Salvar contas - by andmeida10 - 01.05.2010, 18:08
Re: [DUV] Salvar contas - by Diogo_braz - 01.05.2010, 18:26
Re: [DUV] Salvar contas - by ipsBruno - 01.05.2010, 18:34
Re: [DUV] Salvar contas - by (o)Trydon - 01.05.2010, 18:54
Re: [DUV] Salvar contas - by Diogo_braz - 02.05.2010, 16:05
Re: [DUV] Salvar contas - by ipsBruno - 02.05.2010, 16:36
Re: [DUV] Salvar contas - by Diogo_braz - 02.05.2010, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)