Anuncie aqui!

[COD] Comando para Desbugar

Em public OnPlayerCommandText(playerid, cmdtext[])


if(strcmp(cmd, "/desbug", true) == 0)
{
if(IsPlayerConnected(playerid))//VERIFICA SE ESTA CONECTADO
{
new Float:Px = 0.000000, Float:Py = 0.000000, Float:Pz = 0.000000, Float:Pa = 0.000000;
GetPlayerPos(playerid, Px, Py, Pz);//PEGA POS
GetPlayerFacingAngle(playerid, Pa);//PEGA ANGULO
RemovePlayerFromVehicle(playerid);//REMOVE VEICULO SE ESTIVER
SetPlayerPos(playerid, Px, Py, (Pz+3), Pa, -1);//JOGA PLAYER AO ALTO PARA DESBUGAR (NAO MATA)
TogglePlayerControllable(playerid,1);//SE TIVE CONGELADO DESONGLEA
GameTextForPlayer(playerid,"~w~ Desbugado com ~r~Sucesso!",1000,1);
}
return 1;

Comentários

Postar um comentário