21.06.2015, 20:01
Hey guyz,I have tried fixing this command and it's till not working what's wrong with it if you can help Edit it and put it down there.
Код:
COMMAND:invisible(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; }