30.10.2015, 13:47
Try this!
PHP код:
case 1:
{
Streamer_UpdateEx(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
SetPlayerPos(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
SetPlayerVirtualWorld(playerid, GetPVarInt(playerid,"MedicVW"));
SetPlayerInterior(playerid, GetPVarInt(playerid,"MedicInt"));
SetPVarInt(playerid, "EMSAttempt", -1);
if(GetPlayerInterior(playerid) > 0) Player_StreamPrep(playerid, GetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"), FREEZE_TIME);
GameTextForPlayer(playerid, "~r~Bi thuong~n~~w~/chapnhan chet hoac /dichvu capcuu", 5000, 3);
ApplyAnimation(playerid, "CRACK", "null", 4.0, 0, 0, 0, 1, 0, 1);
SetPlayerHealth(playerid, 100);
RemoveArmor(playerid);
if(GetPVarInt(playerid, "usingfirstaid") == 1)
{
firstaidexpire(playerid);
}
SetPVarInt(playerid,"MedicCall",1);
new string[128];
dielabel[playerid] = Create3DTextLabel(" ",0xFF0000FF,30.0,40.0,50.0,15.0,0);
format(string,sizeof(string),"(( Nguoi nay dang bi thuong ))");
Update3DTextLabelText(dielabel[playerid], 0xFF0000FF, string);
Attach3DTextLabelToPlayer(dielabel[playerid], playerid, 0.0, 0.0, 0.4);
SendClientMessageEx(playerid, COLOR_TWBLUE, "Su dung lenh [/chapnhan chet] neu ban da het co hoi song sot.");
//TogglePlayerControllable(playerid,0);
}