04.07.2016, 22:51
hello i need help with my cmd i can't fix it its bug when i use /advisible it just don't visible me people can still see me can someone fix this cmd for me? some help please? i appreciate the help
Код:
COMMAND:adinvisible(playerid,params[]) { if(PlayerInfo[playerid][pAdminlevel] > 0) { if(PlayerInfo[playerid][pHiding] == 0) { PlayerInfo[playerid][pvColor] = GetPlayerColor(playerid); SetPlayerColor(playerid, 0xFFFFFF00); GameTextForPlayer(playerid, "~n~~n~~n~~n~~g~Invisible!",2500,3); PlayerInfo[playerid][pHiding] = 1; if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new Int1 = GetPlayerInterior(playerid); LinkVehicleToInterior(GetPlayerVehicleID(playerid),Int1+1); } return 1; } else SendClientMessage(playerid, COLOR_ERROR,"You are Already Invisible."); } else SendClientMessage(playerid,COLOR_ERROR,""ERROR_MSG""); return 1; }
Код:
COMMAND:advisible(playerid,params[]) { if(PlayerInfo[playerid][pAdminlevel] > 0) { if(PlayerInfo[playerid][pHiding] == 1) { SetPlayerColor(playerid, PlayerInfo[playerid][pvColor]); GameTextForPlayer(playerid, "~n~~n~~n~~n~~b~Visible!",2500,3); PlayerInfo[playerid][pHiding] = 0; if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { new Int1 = GetPlayerInterior(playerid); LinkVehicleToInterior(GetPlayerVehicleID(playerid),Int1); } return 1; } else SendClientMessage(playerid, COLOR_ERROR,"You are Already Visible."); } else SendClientMessage(playerid,COLOR_ERROR,""ERROR_MSG""); return 1; }