[AJUDA]Comando
#1

Po queria faser um comando simples para tirar o player que esta no hospital curando! tipo hm medkit

do o comando o player sai do hospital sem pagar e mais rapido !

Ajuda ae PF !

meu hospital !

pawn Код:
public hosp(playerid)
{

    SetPlayerFacingAngle(playerid, 0);
    new rand;
    rand = random(sizeof(gMedicSpawns));
    SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]);
    SetPlayerCameraPos(playerid, gMedicSpawns[rand][3], gMedicSpawns[rand][4], gMedicSpawns[rand][5]);
    SetPlayerCameraLookAt(playerid,gMedicSpawns[rand][6], gMedicSpawns[rand][7], gMedicSpawns[rand][8]);
    TogglePlayerControllable(playerid,0);
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, -1);
    SetPlayerInterior(playerid, 10);
    PlayerInfo[playerid][pInt] = 10;
    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Voce esta se recuperando de uma operacao e precisa descansar...", 60000, 10);
    //JustDied[playerid] = 1;
    SetTimerEx("sairhosp", 60000, false, "i", playerid);
    hospital[playerid] = false;
}
forward sairhosp(playerid);

public sairhosp(playerid)
{
TogglePlayerControllable(playerid, 1);
SetPlayerPos(playerid,1183.1646,-1324.0796,13.5777);
GivePlayerMoney(playerid,-100);//Cobra 200$ dele
SendClientMessage(playerid, COLOR_RED,"Vocк saiu do hospital, cobramos R$100 pela sua estadia!");
hospital[playerid] = false;
//testhp = 1;
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
return 1;
}
Reply


Messages In This Thread
[AJUDA]Comando /tirarhosp - by WalkerXD - 17.12.2011, 16:24
Re: [AJUDA]Comando - by .Skool_. - 17.12.2011, 16:49
Re: [AJUDA]Comando - by WalkerXD - 17.12.2011, 16:55
Re: [AJUDA]Comando - by Cristhian - 17.12.2011, 17:08
Re: [AJUDA]Comando - by WalkerXD - 17.12.2011, 17:19
Re: [AJUDA]Comando - by Cristhian - 17.12.2011, 17:25
Re: [AJUDA]Comando - by [O.z]Caroline - 17.12.2011, 17:34
Re: [AJUDA]Comando - by WalkerXD - 17.12.2011, 18:02
Re: [AJUDA]Comando - by WalkerXD - 18.12.2011, 17:32
Re: [AJUDA]Comando - by Cristhian - 18.12.2011, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)